/** * Returns the contents of the buffer as a String, or * an empty string if the buffer is empty. */ @Override public String toString() { char[] contents = getContents(); return (contents != null) ? new String(contents) : Util.EMPTY_STRING; } }
/** * Returns the contents of the buffer as a String, or * an empty string if the buffer is empty. */ public String toString() { char[] contents = getContents(); return (contents != null) ? new String(contents) : Util.EMPTY_STRING; } }
/** * Returns the contents of the buffer as a String, or * an empty string if the buffer is empty. */ public String toString() { char[] contents = getContents(); return (contents != null) ? new String(contents) : Util.EMPTY_STRING; } }
/** * Returns the contents of the buffer as a String, or * an empty string if the buffer is empty. */ public String toString() { char[] contents = getContents(); return (contents != null) ? new String(contents) : Util.EMPTY_STRING; } }
/** * Returns the contents of the buffer as a String, or * an empty string if the buffer is empty. */ public String toString() { char[] contents = getContents(); return (contents != null) ? new String(contents) : Util.EMPTY_STRING; } }
/** * Returns the contents of the buffer as a String, or * an empty string if the buffer is empty. */ public String toString() { char[] contents = getContents(); return (contents != null) ? new String(contents) : Util.EMPTY_STRING; } }
/** * Returns the contents of the buffer as a String, or * an empty string if the buffer is empty. */ public String toString() { char[] contents = getContents(); return (contents != null) ? new String(contents) : Util.EMPTY_STRING; } }
/** * @see IDOMNode#getCharacters() */ @Override public char[] getCharacters() { CharArrayBuffer buffer= new CharArrayBuffer(); appendContents(buffer); return buffer.getContents(); } /**
/** * @see IDOMNode#getCharacters() */ public char[] getCharacters() { CharArrayBuffer buffer= new CharArrayBuffer(); appendContents(buffer); return buffer.getContents(); } /**
/** * @see IDOMNode#getCharacters() */ public char[] getCharacters() { CharArrayBuffer buffer= new CharArrayBuffer(); appendContents(buffer); return buffer.getContents(); } /**
private char[] getSignatureFor(NdTypeParameter next) { CharArrayBuffer nextArray = new CharArrayBuffer(); next.getSignature(nextArray); char[] nextContents = nextArray.getContents(); return nextContents; }
/** * @see IDOMNode#getCharacters() */ public char[] getCharacters() { CharArrayBuffer buffer= new CharArrayBuffer(); appendContents(buffer); return buffer.getContents(); } /**
private char[] getSignatureFor(NdTypeParameter next) { CharArrayBuffer nextArray = new CharArrayBuffer(); next.getSignature(nextArray); char[] nextContents = nextArray.getContents(); return nextContents; }
/** * @see IDOMNode#getCharacters() */ public char[] getCharacters() { CharArrayBuffer buffer= new CharArrayBuffer(); appendContents(buffer); return buffer.getContents(); } /**
/** * @see IDOMNode#getCharacters() */ public char[] getCharacters() { CharArrayBuffer buffer= new CharArrayBuffer(); appendContents(buffer); return buffer.getContents(); } /**
private static char[] getGenericSignatureFor(NdMethod method) { if (!method.hasAllFlags(NdMethod.FLG_GENERIC_SIGNATURE_PRESENT)) { return null; } CharArrayBuffer result = new CharArrayBuffer(); method.getGenericSignature(result, method.hasAllFlags(NdMethod.FLG_THROWS_SIGNATURE_PRESENT)); return result.getContents(); }
private static char[] getGenericSignatureFor(NdMethod method) { if (!method.hasAllFlags(NdMethod.FLG_GENERIC_SIGNATURE_PRESENT)) { return null; } CharArrayBuffer result = new CharArrayBuffer(); method.getGenericSignature(result, method.hasAllFlags(NdMethod.FLG_THROWS_SIGNATURE_PRESENT)); return result.getContents(); }
/** * @see IDOMMethod#setExceptions(String[]) */ public void setExceptions(String[] names) { becomeDetailed(); if (names == null || names.length == 0) { this.fExceptions= null; } else { this.fExceptions= names; CharArrayBuffer buffer = new CharArrayBuffer(); char[] comma = new char[] {',', ' '}; for (int i = 0, length = names.length; i < length; i++) { if (i > 0) buffer.append(comma); buffer.append(names[i]); } this.fExceptionList= buffer.getContents(); } fragment(); } /**
/** * @see IDOMMethod#setExceptions(String[]) */ public void setExceptions(String[] names) { becomeDetailed(); if (names == null || names.length == 0) { this.fExceptions= null; } else { this.fExceptions= names; CharArrayBuffer buffer = new CharArrayBuffer(); char[] comma = new char[] {',', ' '}; for (int i = 0, length = names.length; i < length; i++) { if (i > 0) buffer.append(comma); buffer.append(names[i]); } this.fExceptionList= buffer.getContents(); } fragment(); } /**
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()); }