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

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

Best Java code snippets using org.eclipse.jdt.core.compiler.CharOperation.charArrayToStringArray (Showing top 20 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: INRIA/spoon

/**
 * In no classpath, the model of the super interface isn't always correct.
 */
private boolean isCorrectTypeReference(TypeReference ref) {
  if (ref.resolvedType == null) {
    return false;
  }
  if (!(ref.resolvedType instanceof ProblemReferenceBinding)) {
    return true;
  }
  final String[] compoundName = CharOperation.charArrayToStringArray(((ProblemReferenceBinding) ref.resolvedType).compoundName);
  final String[] typeName = CharOperation.charArrayToStringArray(ref.getTypeName());
  if (compoundName.length == 0 || typeName.length == 0) {
    return false;
  }
  return compoundName[compoundName.length - 1].equals(typeName[typeName.length - 1]);
}
origin: INRIA/spoon

final String[] namesParameterized = CharOperation.charArrayToStringArray(ref.getParameterizedTypeName());
String nameParameterized = CharOperation.toString(ref.getParameterizedTypeName());
String typeName = CharOperation.toString(ref.getTypeName());
origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

/**
 * Creates a new DOMMethod and inizializes.
 */
protected void enterAbstractMethod(MethodInfo methodInfo) {

  int[] sourceRange = {methodInfo.declarationStart, -1}; // will be fixed up on exit
  int[] nameRange = {methodInfo.nameSourceStart, methodInfo.nameSourceEnd};
  this.fNode = new DOMMethod(this.fDocument, sourceRange, CharOperation.charToString(methodInfo.name), nameRange, methodInfo.modifiers,
    methodInfo.isConstructor, CharOperation.charToString(methodInfo.returnType),
    CharOperation.charArrayToStringArray(methodInfo.parameterTypes),
    CharOperation.charArrayToStringArray(methodInfo.parameterNames),
    CharOperation.charArrayToStringArray(methodInfo.exceptionTypes));
  addChild(this.fNode);
  this.fStack.push(this.fNode);

  // type parameters not supported by JDOM
}
/**
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

/**
 * Creates a new DOMMethod and inizializes.
 */
protected void enterAbstractMethod(MethodInfo methodInfo) {

  int[] sourceRange = {methodInfo.declarationStart, -1}; // will be fixed up on exit
  int[] nameRange = {methodInfo.nameSourceStart, methodInfo.nameSourceEnd};
  this.fNode = new DOMMethod(this.fDocument, sourceRange, CharOperation.charToString(methodInfo.name), nameRange, methodInfo.modifiers,
    methodInfo.isConstructor, CharOperation.charToString(methodInfo.returnType),
    CharOperation.charArrayToStringArray(methodInfo.parameterTypes),
    CharOperation.charArrayToStringArray(methodInfo.parameterNames),
    CharOperation.charArrayToStringArray(methodInfo.exceptionTypes));
  addChild(this.fNode);
  this.fStack.push(this.fNode);

  // type parameters not supported by JDOM
}
/**
origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

/**
 * Creates a new DOMMethod and inizializes.
 */
protected void enterAbstractMethod(MethodInfo methodInfo) {

  int[] sourceRange = {methodInfo.declarationStart, -1}; // will be fixed up on exit
  int[] nameRange = {methodInfo.nameSourceStart, methodInfo.nameSourceEnd};
  this.fNode = new DOMMethod(this.fDocument, sourceRange, CharOperation.charToString(methodInfo.name), nameRange, methodInfo.modifiers,
    methodInfo.isConstructor, CharOperation.charToString(methodInfo.returnType),
    CharOperation.charArrayToStringArray(methodInfo.parameterTypes),
    CharOperation.charArrayToStringArray(methodInfo.parameterNames),
    CharOperation.charArrayToStringArray(methodInfo.exceptionTypes));
  addChild(this.fNode);
  this.fStack.push(this.fNode);

  // type parameters not supported by JDOM
}
/**
origin: org.eclipse.tycho/org.eclipse.jdt.core

/**
 * Creates a new DOMMethod and inizializes.
 */
protected void enterAbstractMethod(MethodInfo methodInfo) {

  int[] sourceRange = {methodInfo.declarationStart, -1}; // will be fixed up on exit
  int[] nameRange = {methodInfo.nameSourceStart, methodInfo.nameSourceEnd};
  this.fNode = new DOMMethod(this.fDocument, sourceRange, CharOperation.charToString(methodInfo.name), nameRange, methodInfo.modifiers,
    methodInfo.isConstructor, CharOperation.charToString(methodInfo.returnType),
    CharOperation.charArrayToStringArray(methodInfo.parameterTypes),
    CharOperation.charArrayToStringArray(methodInfo.parameterNames),
    CharOperation.charArrayToStringArray(methodInfo.exceptionTypes));
  addChild(this.fNode);
  this.fStack.push(this.fNode);

  // type parameters not supported by JDOM
}
/**
origin: trylimits/Eclipse-Postfix-Code-Completion

/**
 * Creates a new DOMMethod and inizializes.
 */
protected void enterAbstractMethod(MethodInfo methodInfo) {

  int[] sourceRange = {methodInfo.declarationStart, -1}; // will be fixed up on exit
  int[] nameRange = {methodInfo.nameSourceStart, methodInfo.nameSourceEnd};
  this.fNode = new DOMMethod(this.fDocument, sourceRange, CharOperation.charToString(methodInfo.name), nameRange, methodInfo.modifiers,
    methodInfo.isConstructor, CharOperation.charToString(methodInfo.returnType),
    CharOperation.charArrayToStringArray(methodInfo.parameterTypes),
    CharOperation.charArrayToStringArray(methodInfo.parameterNames),
    CharOperation.charArrayToStringArray(methodInfo.exceptionTypes));
  addChild(this.fNode);
  this.fStack.push(this.fNode);

  // type parameters not supported by JDOM
}
/**
origin: org.eclipse.jdt/org.eclipse.jdt.core

public String[] getOpenRestrictions(PackageBinding pack) {
  completeIfNeeded(UpdateKind.PACKAGE);
  if (this.openRestrictions != null) {
    SimpleSetOfCharArray set = this.openRestrictions.get(pack);
    if (set != null) {
      char[][] names = new char[set.elementSize][]; 
      set.asArray(names);
      return CharOperation.charArrayToStringArray(names);
    }
  }
  return CharOperation.NO_STRINGS;
}
public TypeBinding[] getImplementations(TypeBinding binding) {
origin: org.eclipse.jdt/org.eclipse.jdt.core

/**
 * Creates a new DOMMethod and inizializes.
 */
protected void enterAbstractMethod(MethodInfo methodInfo) {

  int[] sourceRange = {methodInfo.declarationStart, -1}; // will be fixed up on exit
  int[] nameRange = {methodInfo.nameSourceStart, methodInfo.nameSourceEnd};
  this.fNode = new DOMMethod(this.fDocument, sourceRange, CharOperation.charToString(methodInfo.name), nameRange, methodInfo.modifiers,
    methodInfo.isConstructor, CharOperation.charToString(methodInfo.returnType),
    CharOperation.charArrayToStringArray(methodInfo.parameterTypes),
    CharOperation.charArrayToStringArray(methodInfo.parameterNames),
    CharOperation.charArrayToStringArray(methodInfo.exceptionTypes));
  addChild(this.fNode);
  this.fStack.push(this.fNode);

  // type parameters not supported by JDOM
}
/**
origin: org.eclipse.tycho/org.eclipse.jdt.core

public String[] getExportRestrictions(PackageBinding pack) {
  completeIfNeeded(UpdateKind.PACKAGE);
  if (this.exportRestrictions != null) {
    SimpleSetOfCharArray set = this.exportRestrictions.get(pack);
    if (set != null) {
      char[][] names = new char[set.elementSize][]; 
      set.asArray(names);
      return CharOperation.charArrayToStringArray(names);
    }
  }
  return CharOperation.NO_STRINGS;
}
public PackageBinding[] getOpens() {
origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

/**
 */
public void enterType(TypeInfo typeInfo) {
  if (this.fBuildingType) {
    int[] sourceRange = {typeInfo.declarationStart, -1}; // will be fixed in the exit
    int[] nameRange = new int[] {typeInfo.nameSourceStart, typeInfo.nameSourceEnd};
    this.fNode = new DOMType(this.fDocument, sourceRange, new String(typeInfo.name), nameRange,
      typeInfo.modifiers, CharOperation.charArrayToStringArray(typeInfo.superinterfaces), TypeDeclaration.kind(typeInfo.modifiers) == TypeDeclaration.CLASS_DECL); // TODO (jerome) should pass in kind
    addChild(this.fNode);
    this.fStack.push(this.fNode);

    // type parameters not supported by JDOM
  }
}
/**
origin: org.eclipse.jdt/org.eclipse.jdt.core

public String[] getExportRestrictions(PackageBinding pack) {
  completeIfNeeded(UpdateKind.PACKAGE);
  if (this.exportRestrictions != null) {
    SimpleSetOfCharArray set = this.exportRestrictions.get(pack);
    if (set != null) {
      char[][] names = new char[set.elementSize][]; 
      set.asArray(names);
      return CharOperation.charArrayToStringArray(names);
    }
  }
  return CharOperation.NO_STRINGS;
}
public PackageBinding[] getOpens() {
origin: org.eclipse.tycho/org.eclipse.jdt.core

public String[] getOpenRestrictions(PackageBinding pack) {
  completeIfNeeded(UpdateKind.PACKAGE);
  if (this.openRestrictions != null) {
    SimpleSetOfCharArray set = this.openRestrictions.get(pack);
    if (set != null) {
      char[][] names = new char[set.elementSize][]; 
      set.asArray(names);
      return CharOperation.charArrayToStringArray(names);
    }
  }
  return CharOperation.NO_STRINGS;
}
public TypeBinding[] getImplementations(TypeBinding binding) {
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

/**
 */
public void enterType(TypeInfo typeInfo) {
  if (this.fBuildingType) {
    int[] sourceRange = {typeInfo.declarationStart, -1}; // will be fixed in the exit
    int[] nameRange = new int[] {typeInfo.nameSourceStart, typeInfo.nameSourceEnd};
    this.fNode = new DOMType(this.fDocument, sourceRange, new String(typeInfo.name), nameRange,
      typeInfo.modifiers, CharOperation.charArrayToStringArray(typeInfo.superinterfaces), TypeDeclaration.kind(typeInfo.modifiers) == TypeDeclaration.CLASS_DECL); // TODO (jerome) should pass in kind
    addChild(this.fNode);
    this.fStack.push(this.fNode);

    // type parameters not supported by JDOM
  }
}
/**
origin: trylimits/Eclipse-Postfix-Code-Completion

/**
 */
public void enterType(TypeInfo typeInfo) {
  if (this.fBuildingType) {
    int[] sourceRange = {typeInfo.declarationStart, -1}; // will be fixed in the exit
    int[] nameRange = new int[] {typeInfo.nameSourceStart, typeInfo.nameSourceEnd};
    this.fNode = new DOMType(this.fDocument, sourceRange, new String(typeInfo.name), nameRange,
      typeInfo.modifiers, CharOperation.charArrayToStringArray(typeInfo.superinterfaces), TypeDeclaration.kind(typeInfo.modifiers) == TypeDeclaration.CLASS_DECL); // TODO (jerome) should pass in kind
    addChild(this.fNode);
    this.fStack.push(this.fNode);

    // type parameters not supported by JDOM
  }
}
/**
origin: org.eclipse.tycho/org.eclipse.jdt.core

/**
 */
public void enterType(TypeInfo typeInfo) {
  if (this.fBuildingType) {
    int[] sourceRange = {typeInfo.declarationStart, -1}; // will be fixed in the exit
    int[] nameRange = new int[] {typeInfo.nameSourceStart, typeInfo.nameSourceEnd};
    this.fNode = new DOMType(this.fDocument, sourceRange, new String(typeInfo.name), nameRange,
      typeInfo.modifiers, CharOperation.charArrayToStringArray(typeInfo.superinterfaces), TypeDeclaration.kind(typeInfo.modifiers) == TypeDeclaration.CLASS_DECL); // TODO (jerome) should pass in kind
    addChild(this.fNode);
    this.fStack.push(this.fNode);

    // type parameters not supported by JDOM
  }
}
/**
origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

/**
 */
public void enterType(TypeInfo typeInfo) {
  if (this.fBuildingType) {
    int[] sourceRange = {typeInfo.declarationStart, -1}; // will be fixed in the exit
    int[] nameRange = new int[] {typeInfo.nameSourceStart, typeInfo.nameSourceEnd};
    this.fNode = new DOMType(this.fDocument, sourceRange, new String(typeInfo.name), nameRange,
      typeInfo.modifiers, CharOperation.charArrayToStringArray(typeInfo.superinterfaces), TypeDeclaration.kind(typeInfo.modifiers) == TypeDeclaration.CLASS_DECL); // TODO (jerome) should pass in kind
    addChild(this.fNode);
    this.fStack.push(this.fNode);

    // type parameters not supported by JDOM
  }
}
/**
origin: org.eclipse.jdt/org.eclipse.jdt.core

/**
 */
@Override
public void enterType(TypeInfo typeInfo) {
  if (this.fBuildingType) {
    int[] sourceRange = {typeInfo.declarationStart, -1}; // will be fixed in the exit
    int[] nameRange = new int[] {typeInfo.nameSourceStart, typeInfo.nameSourceEnd};
    this.fNode = new DOMType(this.fDocument, sourceRange, new String(typeInfo.name), nameRange,
      typeInfo.modifiers, CharOperation.charArrayToStringArray(typeInfo.superinterfaces), TypeDeclaration.kind(typeInfo.modifiers) == TypeDeclaration.CLASS_DECL); // TODO (jerome) should pass in kind
    addChild(this.fNode);
    this.fStack.push(this.fNode);

    // type parameters not supported by JDOM
  }
}
/**
origin: org.eclipse.tycho/org.eclipse.jdt.core

this.fNode = new DOMType(this.fDocument, sourceRange, new String(name), nameRange, commentRange,
  modifiers, modifiersRange, typeKeywordRange, superclassRange, extendsKeywordRange,
  CharOperation.charArrayToStringArray(superinterfaces), interfacesRange,
  implementsKeywordRange, openBodyRange,
  closeBodyRange, isClass);
origin: org.eclipse.jdt/org.eclipse.jdt.core

this.fNode = new DOMType(this.fDocument, sourceRange, new String(name), nameRange, commentRange,
  modifiers, modifiersRange, typeKeywordRange, superclassRange, extendsKeywordRange,
  CharOperation.charArrayToStringArray(superinterfaces), interfacesRange,
  implementsKeywordRange, openBodyRange,
  closeBodyRange, isClass);
org.eclipse.jdt.core.compilerCharOperationcharArrayToStringArray

Javadoc

Returns the char arrays as an array of Strings

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

  • Finding current android device location
  • getApplicationContext (Context)
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • JFrame (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
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