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() {
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() {
@Override public char[] normalizedPath() { if (this.normalizedPath == null) { this.normalizedPath = this.path.toCharArray(); if (File.separatorChar == '\\') { CharOperation.replace(this.normalizedPath, '\\', '/'); } } return this.normalizedPath; } @Override
public static char[] fullyQualifiedNameToFieldDescriptor(char[] fullyQualifiedName) { char[] result = CharArrayUtils.concat(FIELD_DESCRIPTOR_PREFIX, fullyQualifiedName, FIELD_DESCRIPTOR_SUFFIX); CharOperation.replace(result, '.', '/'); return result; }
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); }
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); }
public static char[] createBindingKey(char[] packageName, char[] typeName) { char[] signature = createTypeSignature(packageName, typeName); CharOperation.replace(signature, '.', '/'); return signature; }
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); }
@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); }
public static char[] createBindingKey(char[] packageName, char[] typeName) { char[] signature = createTypeSignature(packageName, typeName); CharOperation.replace(signature, '.', '/'); return signature; }
public static char[] fullyQualifiedNameToFieldDescriptor(char[] fullyQualifiedName) { char[] result = CharArrayUtils.concat(FIELD_DESCRIPTOR_PREFIX, fullyQualifiedName, FIELD_DESCRIPTOR_SUFFIX); CharOperation.replace(result, '.', '/'); return result; }
@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); }
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); }
@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); }
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); }
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() {
@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); }
@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); }
@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); }
@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); }