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

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

Best Java code snippets using org.eclipse.jdt.core.compiler.CharOperation.replace (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: org.eclipse.scout.sdk.deps/ecj

public char[] normalizedPath() {
  if (this.normalizedPath == null) {
    this.normalizedPath = this.path.toCharArray();
    if (File.separatorChar == '\\') {
      CharOperation.replace(this.normalizedPath, '\\', '/');
    }
  }
  return this.normalizedPath;
}
public String getPath() {
origin: com.vaadin/vaadin-client-compiler-deps

public char[] normalizedPath() {
  if (this.normalizedPath == null) {
    this.normalizedPath = this.path.toCharArray();
    if (File.separatorChar == '\\') {
      CharOperation.replace(this.normalizedPath, '\\', '/');
    }
  }
  return this.normalizedPath;
}
public String getPath() {
origin: org.eclipse.jdt/org.eclipse.jdt.core

@Override
public char[] normalizedPath() {
  if (this.normalizedPath == null) {
    this.normalizedPath = this.path.toCharArray();
    if (File.separatorChar == '\\') {
      CharOperation.replace(this.normalizedPath, '\\', '/');
    }
  }
  return this.normalizedPath;
}
@Override
origin: org.eclipse.jdt/org.eclipse.jdt.core

public static char[] fullyQualifiedNameToFieldDescriptor(char[] fullyQualifiedName) {
  char[] result = CharArrayUtils.concat(FIELD_DESCRIPTOR_PREFIX, fullyQualifiedName, FIELD_DESCRIPTOR_SUFFIX);
  CharOperation.replace(result, '.', '/');
  return result;
}
origin: org.eclipse.tycho/org.eclipse.jdt.core

public void consumeLocalType(char[] uniqueKey) {
  this.signature = new StringBuffer();
  // remove trailing semi-colon as it is added later in comsumeType()
  uniqueKey = CharOperation.subarray(uniqueKey, 0, uniqueKey.length-1);
  if (!this.asBinarySignature)
    CharOperation.replace(uniqueKey, '/', '.');
  this.signature.append(uniqueKey);
}
origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

public void consumeLocalType(char[] uniqueKey) {
  this.signature = new StringBuffer();
  // remove trailing semi-colon as it is added later in comsumeType()
  uniqueKey = CharOperation.subarray(uniqueKey, 0, uniqueKey.length-1);
  CharOperation.replace(uniqueKey, '/', '.');
  this.signature.append(uniqueKey);
}
origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

public static char[] createBindingKey(char[] packageName, char[] typeName) {
  char[] signature = createTypeSignature(packageName, typeName);
  CharOperation.replace(signature, '.', '/');
  return signature;
}
origin: com.vaadin/vaadin-client-compiler-deps

public void consumeLocalType(char[] uniqueKey) {
  this.signature = new StringBuffer();
  // remove trailing semi-colon as it is added later in comsumeType()
  uniqueKey = CharOperation.subarray(uniqueKey, 0, uniqueKey.length-1);
  CharOperation.replace(uniqueKey, '/', '.');
  this.signature.append(uniqueKey);
}
origin: org.eclipse.jdt/org.eclipse.jdt.core

@Override
public void consumeLocalType(char[] uniqueKey) {
  this.signature = new StringBuffer();
  // remove trailing semi-colon as it is added later in comsumeType()
  uniqueKey = CharOperation.subarray(uniqueKey, 0, uniqueKey.length-1);
  if (!this.asBinarySignature)
    CharOperation.replace(uniqueKey, '/', '.');
  this.signature.append(uniqueKey);
}
origin: org.eclipse.jdt/org.eclipse.jdt.core

public static char[] createBindingKey(char[] packageName, char[] typeName) {
  char[] signature = createTypeSignature(packageName, typeName);
  CharOperation.replace(signature, '.', '/');
  return signature;
}
origin: org.eclipse.tycho/org.eclipse.jdt.core

public static char[] fullyQualifiedNameToFieldDescriptor(char[] fullyQualifiedName) {
  char[] result = CharArrayUtils.concat(FIELD_DESCRIPTOR_PREFIX, fullyQualifiedName, FIELD_DESCRIPTOR_SUFFIX);
  CharOperation.replace(result, '.', '/');
  return result;
}
origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

@Override
public String toString() {
  ReferenceBinding binding = (ReferenceBinding) this._binding;
  char[] concatWith = CharOperation.concatWith(binding.compoundName, '.');
  if (binding.isNestedType()) {
    CharOperation.replace(concatWith, '$', '.');
    return new String(concatWith);
  }
  return new String(concatWith);
}
origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

private String returnClassName(char[] classInfoName) {
  if (classInfoName.length == 0) {
    return EMPTY_CLASS_NAME;
  } else if (isCompact()) {
    int lastIndexOfSlash = CharOperation.lastIndexOf('/', classInfoName);
    if (lastIndexOfSlash != -1) {
      return new String(classInfoName, lastIndexOfSlash + 1, classInfoName.length - lastIndexOfSlash - 1);
    }
  }
  CharOperation.replace(classInfoName, '/', '.');
  return new String(classInfoName);
}
origin: org.eclipse.jdt.compiler/apt

@Override
public String toString() {
  ReferenceBinding binding = (ReferenceBinding) this._binding;
  char[] concatWith = CharOperation.concatWith(binding.compoundName, '.');
  if (binding.isNestedType()) {
    CharOperation.replace(concatWith, '$', '.');
    return new String(concatWith);
  }
  return new String(concatWith);
}
origin: org.eclipse.jdt/org.eclipse.jdt.core

private String returnMethodSignature(IConstantPoolEntry constantMethodref) {
  final char[] methodDescriptor = constantMethodref.getMethodDescriptor();
  CharOperation.replace(methodDescriptor, '$', '#');
  final char[] signature = Util.toString(
      constantMethodref.getClassName(),
      constantMethodref.getMethodName(),
      methodDescriptor,
      true,
      isCompact()).toCharArray();
  CharOperation.replace(signature, '#', '$');
  return String.valueOf(signature);
}
origin: org.eclipse.jdt.core.compiler/ecj

public char[] normalizedPath() {
  if (this.normalizedPath == null) {
    String path2 = this.getPath();
    char[] rawName = path2.toCharArray();
    if (File.separatorChar == '\\') {
      CharOperation.replace(rawName, '\\', '/');
    }
    this.normalizedPath = CharOperation.subarray(rawName, 0, CharOperation.lastIndexOf('.', rawName));
  }
  return this.normalizedPath;
}
public String getPath() {
origin: org.eclipse.jdt.core.compiler/ecj

@Override
public Name getQualifiedName() {
  ReferenceBinding binding = (ReferenceBinding)_binding;
  char[] qName;
  if (binding.isMemberType()) {
    qName = CharOperation.concatWith(binding.enclosingType().compoundName, binding.sourceName, '.');
    CharOperation.replace(qName, '$', '.');
  } else {
    qName = CharOperation.concatWith(binding.compoundName, '.');
  }
  return new NameImpl(qName);
}
origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

@Override
public Name getQualifiedName() {
  ReferenceBinding binding = (ReferenceBinding)_binding;
  char[] qName;
  if (binding.isMemberType()) {
    qName = CharOperation.concatWith(binding.enclosingType().compoundName, binding.sourceName, '.');
    CharOperation.replace(qName, '$', '.');
  } else {
    qName = CharOperation.concatWith(binding.compoundName, '.');
  }
  return new NameImpl(qName);
}
origin: org.eclipse.scout.sdk.deps/ecj

@Override
public Name getQualifiedName() {
  ReferenceBinding binding = (ReferenceBinding)_binding;
  char[] qName;
  if (binding.isMemberType()) {
    qName = CharOperation.concatWith(binding.enclosingType().compoundName, binding.sourceName, '.');
    CharOperation.replace(qName, '$', '.');
  } else {
    qName = CharOperation.concatWith(binding.compoundName, '.');
  }
  return new NameImpl(qName);
}
origin: org.eclipse.jdt.compiler/apt

@Override
public Name getQualifiedName() {
  ReferenceBinding binding = (ReferenceBinding)_binding;
  char[] qName;
  if (binding.isMemberType()) {
    qName = CharOperation.concatWith(binding.enclosingType().compoundName, binding.sourceName, '.');
    CharOperation.replace(qName, '$', '.');
  } else {
    qName = CharOperation.concatWith(binding.compoundName, '.');
  }
  return new NameImpl(qName);
}
org.eclipse.jdt.core.compilerCharOperationreplace

Javadoc

Replace all occurrence of the character to be replaced with the replacement character in the given array.

For example:
  1.  
    array = { 'a' , 'b', 'b', 'a', 'b', 'a' } 
    toBeReplaced = 'b' 
    replacementChar = 'a' 
    result => No returned value, but array is now equals to { 'a' , 'a', 'a', 'a', 'a', 'a' } 
    
  2.  
    array = { 'a' , 'b', 'b', 'a', 'b', 'a' } 
    toBeReplaced = 'c' 
    replacementChar = 'a' 
    result => No returned value, but array is now equals to { 'a' , 'b', 'b', 'a', 'b', 'a' } 
    

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
  • compareTo
    Compares the two char arrays lexicographically between the given start and end positions. Returns a
  • concat
    Answers the concatenation of the three arrays. It answers null if the three arrays are null. If firs
  • compareTo,
  • concat,
  • fragmentEquals,
  • isWhitespace,
  • match,
  • replaceOnCopy,
  • hashCode,
  • prefixEquals,
  • deepCopy

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
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