@Override public void consumeFullyQualifiedName(char[] fullyQualifiedName) { this.typeSigStart = this.signature.length(); this.signature.append('L'); if (!this.asBinarySignature) fullyQualifiedName = CharOperation.replaceOnCopy(fullyQualifiedName, '/', '.'); this.signature.append(fullyQualifiedName); }
private static char[] getRequiredTypeSignature(TypeBinding typeBinding) { char[] result = null; StringBuffer sig = new StringBuffer(10); sig.append(typeBinding.signature()); int sigLength = sig.length(); result = new char[sigLength]; sig.getChars(0, sigLength, result, 0); result = CharOperation.replaceOnCopy(result, '/', '.'); return result; }
@Override public void consumeFullyQualifiedName(char[] fullyQualifiedName) { try { this.element = this.project.findType(new String(CharOperation.replaceOnCopy(fullyQualifiedName, '/', '.')), this.owner); } catch (JavaModelException e) { this.exception = e; } }
public static char[] getTypeSignature(TypeBinding typeBinding) { char[] result = typeBinding.signature(); if (result != null) { result = CharOperation.replaceOnCopy(result, '/', '.'); } return result; }
public static char[] getSignature(TypeBinding typeBinding) { char[] result = null; result = typeBinding.genericTypeSignature(); if (result != null) { result = CharOperation.replaceOnCopy(result, '/', '.'); } return result; } }
@Override public void consumePackage(char[] pkgName) { pkgName = CharOperation.replaceOnCopy(pkgName, '/', '.'); try { this.element = this.project.findPackageFragment(new String(pkgName)); } catch (JavaModelException e) { this.exception = e; } }
private char[] getSignatureForField(char[] fieldDescriptor) { char[] newFieldDescriptor = CharOperation.replaceOnCopy(fieldDescriptor, '/', '.'); newFieldDescriptor = CharOperation.replaceOnCopy(newFieldDescriptor, '$', '%'); char[] fieldDescriptorSignature = Signature.toCharArray(newFieldDescriptor); CharOperation.replace(fieldDescriptorSignature, '%', '$'); return fieldDescriptorSignature; }
private static char[] getRequiredTypeSignature(TypeBinding typeBinding) { char[] result = null; StringBuffer sig = new StringBuffer(10); sig.append(typeBinding.signature()); int sigLength = sig.length(); result = new char[sigLength]; sig.getChars(0, sigLength, result, 0); result = CharOperation.replaceOnCopy(result, '/', '.'); return result; }
public static char[] getSignature(TypeBinding typeBinding) { char[] result = null; result = typeBinding.genericTypeSignature(); if (result != null) { result = CharOperation.replaceOnCopy(result, '/', '.'); } return result; } }
private static char[] getRequiredTypeSignature(TypeBinding typeBinding) { char[] result = null; StringBuffer sig = new StringBuffer(10); sig.append(typeBinding.signature()); int sigLength = sig.length(); result = new char[sigLength]; sig.getChars(0, sigLength, result, 0); result = CharOperation.replaceOnCopy(result, '/', '.'); return result; }
public void consumeFullyQualifiedName(char[] fullyQualifiedName) { try { this.element = this.project.findType(new String(CharOperation.replaceOnCopy(fullyQualifiedName, '/', '.')), this.owner); } catch (JavaModelException e) { this.exception = e; } }
public static char[] getTypeSignature(TypeBinding typeBinding) { char[] result = typeBinding.signature(); if (result != null) { result = CharOperation.replaceOnCopy(result, '/', '.'); } return result; }
private static String getTypeSignature(JavaModelManager manager, TypeBinding type) { char[] signature = type.genericTypeSignature(); signature = CharOperation.replaceOnCopy(signature, '/', '.'); return manager.intern(new String(signature)); }
private static String getTypeSignature(JavaModelManager manager, TypeBinding type) { char[] signature = type.genericTypeSignature(); signature = CharOperation.replaceOnCopy(signature, '/', '.'); return manager.intern(new String(signature)); }
private static String getTypeSignature(JavaModelManager manager, TypeBinding type) { char[] signature = type.genericTypeSignature(); signature = CharOperation.replaceOnCopy(signature, '/', '.'); return manager.intern(new String(signature)); }
@Override public Name getBinaryName(TypeElement type) { TypeElementImpl typeElementImpl = (TypeElementImpl) type; ReferenceBinding referenceBinding = (ReferenceBinding) typeElementImpl._binding; return new NameImpl( CharOperation.replaceOnCopy(referenceBinding.constantPoolName(), '/', '.')); }
public static char[] createNonGenericTypeSignature(char[] qualifiedPackageName, char[] qualifiedTypeName) { return Signature.createCharArrayTypeSignature( CharOperation.concat( qualifiedPackageName, CharOperation.replaceOnCopy(qualifiedTypeName, '.', '$'), '.'), true); }
private String getReturnType(IBinaryMethod info) { char[] genericSignature = info.getGenericSignature(); char[] signature = genericSignature == null ? info.getMethodDescriptor() : genericSignature; char[] dotBasedSignature = CharOperation.replaceOnCopy(signature, '/', '.'); String returnTypeName= Signature.getReturnType(new String(dotBasedSignature)); return new String(ClassFile.translatedName(returnTypeName.toCharArray())); } /*
private String getReturnType(IBinaryMethod info) { char[] genericSignature = info.getGenericSignature(); char[] signature = genericSignature == null ? info.getMethodDescriptor() : genericSignature; char[] dotBasedSignature = CharOperation.replaceOnCopy(signature, '/', '.'); String returnTypeName= Signature.getReturnType(new String(dotBasedSignature)); return new String(ClassFile.translatedName(returnTypeName.toCharArray())); } /*
LambdaExpression(JavaElement parent, org.eclipse.jdt.internal.compiler.ast.LambdaExpression lambdaExpression) { super(parent, new String(CharOperation.NO_CHAR)); this.sourceStart = lambdaExpression.sourceStart; this.sourceEnd = lambdaExpression.sourceEnd; this.arrowPosition = lambdaExpression.arrowPosition; TypeBinding supertype = findLambdaSuperType(lambdaExpression); this.interphase = new String(CharOperation.replaceOnCopy(supertype.genericTypeSignature(), '/', '.')); this.elementInfo = makeTypeElementInfo(this, this.interphase, this.sourceStart, this.sourceEnd, this.arrowPosition); this.lambdaMethod = LambdaFactory.createLambdaMethod(this, lambdaExpression); this.elementInfo.children = new IJavaElement[] { this.lambdaMethod }; }