public abstract void getSignature(CharArrayBuffer result, boolean includeTrailingSemicolon);
public abstract void getSignature(CharArrayBuffer result, boolean includeTrailingSemicolon);
public String toString() { try { CharArrayBuffer result = new CharArrayBuffer(); getSignature(result); return result.toString(); } catch (RuntimeException e) { // This is called most often from the debugger, so we want to return something meaningful even // if the code is buggy, the database is corrupt, or we don't have a read lock. return super.toString(); } } }
@Override public String toString() { try { CharArrayBuffer result = new CharArrayBuffer(); getSignature(result); return result.toString(); } catch (RuntimeException e) { // This is called most often from the debugger, so we want to return something meaningful even // if the code is buggy, the database is corrupt, or we don't have a read lock. return super.toString(); } } }
public void getSignature(CharArrayBuffer result) { result.append(':'); getType().getSignature(result); } }
public void getSignature(CharArrayBuffer result) { result.append(':'); getType().getSignature(result); } }
public void getSignature(CharArrayBuffer result) { switch (getWildcard()) { case NdTypeArgument.WILDCARD_EXTENDS: result.append('-'); break; case NdTypeArgument.WILDCARD_QUESTION: result.append('*'); return; case NdTypeArgument.WILDCARD_SUPER: result.append('+'); break; } NdTypeSignature theType = getType(); if (theType != null) { theType.getSignature(result); } } }
public void getSignature(CharArrayBuffer result) { switch (getWildcard()) { case NdTypeArgument.WILDCARD_EXTENDS: result.append('-'); break; case NdTypeArgument.WILDCARD_QUESTION: result.append('*'); return; case NdTypeArgument.WILDCARD_SUPER: result.append('+'); break; } NdTypeSignature theType = getType(); if (theType != null) { theType.getSignature(result); } } }
public void getGenericSignature(CharArrayBuffer result, boolean includeExceptions) { NdTypeParameter.getSignature(result, getTypeParameters()); result.append('('); for (NdMethodParameter next : getMethodParameters()) { // Compiler-defined arguments don't show up in the generic signature if (!next.isCompilerDefined()) { next.getType().getSignature(result); } } result.append(')'); NdTypeSignature returnType = getReturnType(); if (returnType == null) { result.append('V'); } else { returnType.getSignature(result); } if (includeExceptions) { List<NdMethodException> exceptions = getExceptions(); for (NdMethodException next : exceptions) { result.append('^'); next.getExceptionType().getSignature(result); } } }
public void getGenericSignature(CharArrayBuffer result, boolean includeExceptions) { NdTypeParameter.getSignature(result, getTypeParameters()); result.append('('); for (NdMethodParameter next : getMethodParameters()) { // Compiler-defined arguments don't show up in the generic signature if (!next.isCompilerDefined()) { next.getType().getSignature(result); } } result.append(')'); NdTypeSignature returnType = getReturnType(); if (returnType == null) { result.append('V'); } else { returnType.getSignature(result); } if (includeExceptions) { List<NdMethodException> exceptions = getExceptions(); for (NdMethodException next : exceptions) { result.append('^'); next.getExceptionType().getSignature(result); } } }
@Override public char[] getGenericSignature() { try (IReader rl = this.typeRef.lock()) { NdType type = this.typeRef.get(); if (type != null) { if (!type.getFlag(NdType.FLG_GENERIC_SIGNATURE_PRESENT)) { return null; } CharArrayBuffer buffer = new CharArrayBuffer(); NdTypeParameter.getSignature(buffer, type.getTypeParameters()); NdTypeSignature superclass = type.getSuperclass(); if (superclass != null) { superclass.getSignature(buffer); } for (NdTypeInterface nextInterface : type.getInterfaces()) { nextInterface.getInterface().getSignature(buffer); } return buffer.getContents(); } else { return null; } } }
@Override public char[] getGenericSignature() { try (IReader rl = this.typeRef.lock()) { NdType type = this.typeRef.get(); if (type != null) { if (!type.getFlag(NdType.FLG_GENERIC_SIGNATURE_PRESENT)) { return null; } CharArrayBuffer buffer = new CharArrayBuffer(); NdTypeParameter.getSignature(buffer, type.getTypeParameters()); NdTypeSignature superclass = type.getSuperclass(); if (superclass != null) { superclass.getSignature(buffer); } for (NdTypeInterface nextInterface : type.getInterfaces()) { nextInterface.getInterface().getSignature(buffer); } return buffer.getContents(); } else { return null; } } }
public static IBinaryField createBinaryField(NdVariable ndVariable) { char[] name = ndVariable.getName().getChars(); Constant constant = null; NdConstant ndConstant = ndVariable.getConstant(); if (ndConstant != null) { constant = ndConstant.getConstant(); } if (constant == null) { constant = Constant.NotAConstant; } NdTypeSignature type = ndVariable.getType(); IBinaryTypeAnnotation[] typeAnnotationArray = createBinaryTypeAnnotations(ndVariable.getTypeAnnotations()); IBinaryAnnotation[] annotations = toAnnotationArray(ndVariable.getAnnotations()); CharArrayBuffer signature = new CharArrayBuffer(); if (ndVariable.hasVariableFlag(NdVariable.FLG_GENERIC_SIGNATURE_PRESENT)) { type.getSignature(signature); } long tagBits = ndVariable.getTagBits(); return new IndexBinaryField(annotations, constant, signature.getContents(), ndVariable.getModifiers(), name, tagBits, typeAnnotationArray, type.getRawType().getFieldDescriptor().getChars()); }
public static IBinaryField createBinaryField(NdVariable ndVariable) { char[] name = ndVariable.getName().getChars(); Constant constant = null; NdConstant ndConstant = ndVariable.getConstant(); if (ndConstant != null) { constant = ndConstant.getConstant(); } if (constant == null) { constant = Constant.NotAConstant; } NdTypeSignature type = ndVariable.getType(); IBinaryTypeAnnotation[] typeAnnotationArray = createBinaryTypeAnnotations(ndVariable.getTypeAnnotations()); IBinaryAnnotation[] annotations = toAnnotationArray(ndVariable.getAnnotations()); CharArrayBuffer signature = new CharArrayBuffer(); if (ndVariable.hasVariableFlag(NdVariable.FLG_GENERIC_SIGNATURE_PRESENT)) { type.getSignature(signature); } long tagBits = ndVariable.getTagBits(); return new IndexBinaryField(annotations, constant, signature.getContents(), ndVariable.getModifiers(), name, tagBits, typeAnnotationArray, type.getRawType().getFieldDescriptor().getChars()); }
if (arrayDimension != null) { result.append('['); arrayDimension.getSignature(result); return;
if (arrayDimension != null) { result.append('['); arrayDimension.getSignature(result); return;