/** * @see DOMMember#appendSimpleContents(CharArrayBuffer) */ protected void appendSimpleContents(CharArrayBuffer buffer) { // append eveything before my name buffer.append(this.fDocument, this.fSourceRange[0], this.fNameRange[0] - this.fSourceRange[0]); // append my name buffer.append(this.fName); // append everything after my name buffer.append(this.fDocument, this.fNameRange[1] + 1, this.fSourceRange[1] - this.fNameRange[1]); } /**
/** * Appends the given char. Given for convenience. * * @param c - a char which is appended to the end of the buffer. */ public CharArrayBuffer append(char c) { append(new char[] {c}, 0, 1); return this; } /**
/** * Appends the entire given char array. Given for convenience. * * @param src - a char array which is appended to the end of the buffer. */ public CharArrayBuffer append(char[] src) { if (src != null) append(src, 0, src.length); return this; } /**
/** * @see DOMMember#appendSimpleContents(CharArrayBuffer) */ protected void appendSimpleContents(CharArrayBuffer buffer) { // append eveything before my name buffer.append(this.fDocument, this.fSourceRange[0], this.fNameRange[0] - this.fSourceRange[0]); // append my name buffer.append(this.fName); // append everything after my name buffer.append(this.fDocument, this.fNameRange[1] + 1, this.fSourceRange[1] - this.fNameRange[1]); } /**
/** * Appends the entire given char array. Given for convenience. * * @param src - a char array which is appended to the end of the buffer. */ public CharArrayBuffer append(char[] src) { if (src != null) append(src, 0, src.length); return this; } /**
/** * @see DOMMember#appendSimpleContents(CharArrayBuffer) */ protected void appendSimpleContents(CharArrayBuffer buffer) { // append eveything before my name buffer.append(this.fDocument, this.fSourceRange[0], this.fNameRange[0] - this.fSourceRange[0]); // append my name buffer.append(this.fName); // append everything after my name buffer.append(this.fDocument, this.fNameRange[1] + 1, this.fSourceRange[1] - this.fNameRange[1]); } /**
/** * Appends the entire given char array. Given for convenience. * * @param src - a char array which is appended to the end of the buffer. */ public CharArrayBuffer append(char[] src) { if (src != null) append(src, 0, src.length); return this; } /**
/** * @see DOMMember#appendMemberBodyContents(CharArrayBuffer) */ @Override protected void appendMemberBodyContents(CharArrayBuffer buffer) { if (this.fBody != null) { buffer.append(this.fBody); } else { buffer.append(this.fDocument, this.fBodyRange[0], this.fBodyRange[1] + 1 - this.fBodyRange[0]); } } /**
/** * @see DOMMember#appendMemberBodyContents(CharArrayBuffer) */ protected void appendMemberBodyContents(CharArrayBuffer buffer) { buffer.append(this.fDocument, this.fOpenBodyRange[0], this.fOpenBodyRange[1] + 1 - this.fOpenBodyRange[0]); appendContentsOfChildren(buffer); buffer.append(this.fDocument, this.fCloseBodyRange[0], this.fCloseBodyRange[1] + 1 - this.fCloseBodyRange[0]); buffer.append(this.fDocument, this.fCloseBodyRange[1] + 1, this.fSourceRange[1] - this.fCloseBodyRange[1]); } /**
/** * Appends the given String to the buffer. Given for convenience, use * #append(char[]) if possible * * @param src - a char array which is appended to the end of the buffer. */ public CharArrayBuffer append(String src) { if (src != null) append(src.toCharArray(), 0, src.length()); return this; } /**
/** * Appends the given String to the buffer. Given for convenience, use * #append(char[]) if possible * * @param src - a char array which is appended to the end of the buffer. */ public CharArrayBuffer append(String src) { if (src != null) append(src.toCharArray(), 0, src.length()); return this; } /**
/** * Appends the given String to the buffer. Given for convenience, use * #append(char[]) if possible * * @param src - a char array which is appended to the end of the buffer. */ public CharArrayBuffer append(String src) { if (src != null) append(src.toCharArray(), 0, src.length()); return this; } /**
/** * Appends the given String to the buffer. Given for convenience, use * #append(char[]) if possible * * @param src - a char array which is appended to the end of the buffer. */ public CharArrayBuffer append(String src) { if (src != null) append(src.toCharArray(), 0, src.length()); return this; } /**
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) { result.append(':'); getType().getSignature(result); } }
public void getSignature(CharArrayBuffer result) { result.append(':'); getType().getSignature(result); } }
/** * @see DOMNode#appendContents(CharArrayBuffer) */ protected void appendFragmentedContents(CharArrayBuffer buffer) { buffer.append(getHeader()); appendContentsOfChildren(buffer); } /**
public String toString() { try { CharArrayBuffer arrayBuffer = new CharArrayBuffer(); arrayBuffer.append(getSelector()); getGenericSignature(arrayBuffer, true); return arrayBuffer.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(); } }