Codota Logo
CharOperation.concatWithAll
Code IndexAdd Codota to your IDE (free)

How to use
concatWithAll
method
in
org.eclipse.jdt.core.compiler.CharOperation

Best Java code snippets using org.eclipse.jdt.core.compiler.CharOperation.concatWithAll (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.eclipse.tycho/org.eclipse.jdt.core

private void setCompletionToken(char[][] tokens, int sourceStart, int sourceEnd, long[] sourcePositions, boolean without) {
  this.completionToken = without ? CharOperation.concatWith(tokens, '.') : CharOperation.concatWithAll(tokens, '.');
  if (this.completionToken.length == 0)
    this.completionToken = CharOperation.ALL_PREFIX;
  setSourceRange(sourceStart, sourceEnd);
  long completionPosition = sourcePositions[sourcePositions.length - 1];
  setTokenRange((int) (completionPosition >>> 32), (int) completionPosition);
}
private void setCompletionToken(char[][] tokens, int sourceStart, int sourceEnd, long[] sourcePositions) {
origin: org.eclipse.jdt/org.eclipse.jdt.core

private void setCompletionToken(char[][] tokens, int sourceStart, int sourceEnd, long[] sourcePositions, boolean without) {
  this.completionToken = without ? CharOperation.concatWith(tokens, '.') : CharOperation.concatWithAll(tokens, '.');
  if (this.completionToken.length == 0)
    this.completionToken = CharOperation.ALL_PREFIX;
  setSourceRange(sourceStart, sourceEnd);
  long completionPosition = sourcePositions[sourcePositions.length - 1];
  setTokenRange((int) (completionPosition >>> 32), (int) completionPosition);
}
private void setCompletionToken(char[][] tokens, int sourceStart, int sourceEnd, long[] sourcePositions) {
origin: org.eclipse.tycho/org.eclipse.jdt.core

private void findPackages(CompletionOnPackageReference packageStatement) {
  this.completionToken = CharOperation.concatWithAll(packageStatement.tokens, '.');
  if (this.completionToken.length == 0)
    return;
  setSourceRange(packageStatement.sourceStart, packageStatement.sourceEnd);
  long completionPosition = packageStatement.sourcePositions[packageStatement.sourcePositions.length - 1];
  setTokenRange((int) (completionPosition >>> 32), (int) completionPosition);
  this.nameEnvironment.findPackages(CharOperation.toLowerCase(this.completionToken), this);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

private void findPackages(CompletionOnPackageReference packageStatement) {
  this.completionToken = CharOperation.concatWithAll(packageStatement.tokens, '.');
  if (this.completionToken.length == 0)
    return;
  setSourceRange(packageStatement.sourceStart, packageStatement.sourceEnd);
  long completionPosition = packageStatement.sourcePositions[packageStatement.sourcePositions.length - 1];
  setTokenRange((int) (completionPosition >>> 32), (int) completionPosition);
  this.nameEnvironment.findPackages(CharOperation.toLowerCase(this.completionToken), this);
}
origin: org.eclipse.jdt/org.eclipse.jdt.core

private void findPackages(CompletionOnPackageReference packageStatement) {
  this.completionToken = CharOperation.concatWithAll(packageStatement.tokens, '.');
  if (this.completionToken.length == 0)
    return;
  setSourceRange(packageStatement.sourceStart, packageStatement.sourceEnd);
  long completionPosition = packageStatement.sourcePositions[packageStatement.sourcePositions.length - 1];
  setTokenRange((int) (completionPosition >>> 32), (int) completionPosition);
  try {
    this.nameEnvironment.findPackages(CharOperation.toLowerCase(this.completionToken), this, this.javaProject.getAllPackageFragmentRoots(), true);
  } catch (JavaModelException e) {
    // silent
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

return CharOperation.concatWithAll(tmp, '/');
origin: org.eclipse.tycho/org.eclipse.jdt.core

private void findImplementations(ProvidesStatement providesStmt, TypeReference reference ) {
  char[][] tokens = reference.getTypeName();
  char[] typeName = CharOperation.concatWithAll(tokens, '.');
  if (typeName.length == 0) {
    this.completionToken = CharOperation.ALL_PREFIX;
  } else if (reference instanceof CompletionOnProvidesImplementationsQualifiedTypeReference) {
    CompletionOnQualifiedTypeReference qReference = (CompletionOnQualifiedTypeReference) reference;
    if (qReference.completionIdentifier != null) {
      this.completionToken = CharOperation.concatAll(typeName, qReference.completionIdentifier, '.');
    }
  } else {
     char[] lastToken = tokens[tokens.length - 1];
     this.completionToken = lastToken != null && lastToken.length == 0 ?
         CharOperation.concat(typeName, new char[]{'.'}) :lastToken;
  }
  setSourceRange(reference.sourceStart, reference.sourceEnd);
  findImplementations(this.completionToken, this.unitScope, providesStmt, -1);
}
origin: org.eclipse.jdt/org.eclipse.jdt.core

return CharOperation.concatWithAll(tmp, '/');
origin: org.eclipse.tycho/org.eclipse.jdt.core

return CharOperation.concatWithAll(tmp, '/');
origin: org.eclipse.jdt/org.eclipse.jdt.core

private void findImplementations(ProvidesStatement providesStmt, TypeReference reference ) {
  char[][] tokens = reference.getTypeName();
  char[] typeName = CharOperation.concatWithAll(tokens, '.');
  if (typeName.length == 0) {
    this.completionToken = CharOperation.ALL_PREFIX;
  } else if (reference instanceof CompletionOnProvidesImplementationsQualifiedTypeReference) {
    CompletionOnQualifiedTypeReference qReference = (CompletionOnQualifiedTypeReference) reference;
    if (qReference.completionIdentifier != null) {
      this.completionToken = CharOperation.concatAll(typeName, qReference.completionIdentifier, '.');
    }
  } else {
     char[] lastToken = tokens[tokens.length - 1];
     this.completionToken = lastToken != null && lastToken.length == 0 ?
         CharOperation.concat(typeName, new char[]{'.'}) :lastToken;
  }
  setSourceRange(reference.sourceStart, reference.sourceEnd);
  findImplementations(this.completionToken, this.unitScope, providesStmt, -1);
}
origin: org.eclipse.jdt/org.eclipse.jdt.core

private boolean checkForCNF(TypeReference ref, CompilationUnitDeclaration parsedUnit, boolean showAll) {
  this.lookupEnvironment.buildTypeBindings(parsedUnit, null);
  this.lookupEnvironment.completeTypeBindings(parsedUnit, true);
  parsedUnit.resolve();
  this.startPosition = ref.sourceStart;
  this.endPosition = ref.sourceEnd > ref.sourceStart ? ref.sourceEnd : ref.sourceStart;
  if ((this.unitScope = parsedUnit.scope) != null) {
    if (showAll) {
      char[][] tokens = ref.getTypeName();
      char[] typeName = CharOperation.concatWithAll(tokens, '.');
      if (typeName.length == 0) {
        buildContext(ref, null, parsedUnit, null, null);
        this.completionToken = new char[] {'*'};
        findTypesAndPackages(this.completionToken, this.unitScope, true, true, new ObjectVector());
        return true;
      }
    }
    parsedUnit.scope.faultInTypes();
  }
  return false; // should not come here - will throw exception
}
origin: org.eclipse.tycho/org.eclipse.jdt.core

private boolean checkForCNF(TypeReference ref, CompilationUnitDeclaration parsedUnit, boolean showAll) {
  this.lookupEnvironment.buildTypeBindings(parsedUnit, null);
  this.lookupEnvironment.completeTypeBindings(parsedUnit, true);
  parsedUnit.resolve();
  if ((this.unitScope = parsedUnit.scope) != null) {
    if (showAll) {
      char[][] tokens = ref.getTypeName();
      char[] typeName = CharOperation.concatWithAll(tokens, '.');
      if (typeName.length == 0) {
        buildContext(ref, null, parsedUnit, null, null);
        this.completionToken = new char[] {'*'};
        findTypesAndPackages(this.completionToken, this.unitScope, true, true, new ObjectVector());
        return true;
      }
    }
    parsedUnit.scope.faultInTypes();
  }
  return false; // should not come here - will throw exception
}
org.eclipse.jdt.core.compilerCharOperationconcatWithAll

Javadoc

Answers the concatenation of the given array parts using the given separator between each part irrespective of whether an element is a zero length array or not.

For example:
  1.  
    array = { { 'a' }, {}, { 'b' } } 
    separator = '' 
    => result = { 'a', '/', '/', 'b' } 
    
  2.  
    array = { { 'a' }, { 'b' } } 
    separator = '.' 
    => result = { 'a', '.', 'b' } 
    
  3.  
    array = null 
    separator = '.' 
    => result = { } 
    

Popular methods of CharOperation

  • equals
    If isCaseSensite is true, answers true if the two arrays are identical character by character, other
  • lastIndexOf
    Answers the last index in the array for which the corresponding character is equal to toBeFound star
  • splitOn
    Return a new array which is the split of the given array using the given divider. The given end is e
  • subarray
    Answers a new array which is a copy of the given array starting at the given start and ending at the
  • toString
    Answers a string which is the concatenation of the given array using the '.' as a separator. For ex
  • arrayConcat
    Answers the concatenation of the two arrays. It answers null if the two arrays are null. If the firs
  • camelCaseMatch
    Answers true if the pattern matches the given name using CamelCase rules, or false otherwise. char[]
  • concatWith
    Answers the concatenation of the given array parts using the given separator between each part and a
  • pathMatch
    Answers true if the pattern matches the filepath using the pathSepatator, false otherwise. Path char
  • indexOf
    Answers the first index in the array for which the toBeFound array is a matching subarray following
  • replace
    Answers a new array of characters with substitutions. No side-effect is operated on the original arr
  • compareTo
    Compares the two char arrays lexicographically between the given start and end positions. Returns a
  • replace,
  • compareTo,
  • concat,
  • fragmentEquals,
  • isWhitespace,
  • match,
  • replaceOnCopy,
  • hashCode,
  • prefixEquals,
  • deepCopy

Popular in Java

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • JPanel (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now