Examples of CharArrayBuffer


Examples of org.aspectj.org.eclipse.jdt.internal.core.util.CharArrayBuffer

* declaration with one variable declarator.
*/
protected char[] getSingleVariableDeclaratorContents() {


  CharArrayBuffer buffer= new CharArrayBuffer();
  DOMField first= getFirstFieldDeclaration();
  if (first.isDetailed()) {
    first.appendMemberHeaderFragment(buffer);
    buffer.append(getType());
    if (isVariableDeclarator()) {
      buffer.append(' ');
    } else {
      buffer.append(fDocument, fTypeRange[1] + 1, fNameRange[0] - fTypeRange[1] - 1);
    }
  } else {
    buffer.append(first.fDocument, first.fSourceRange[0], first.fNameRange[0] - first.fSourceRange[0]);
  }
 
  buffer.append(getName());
  if (hasInitializer()) {
    if (fInitializerRange[0] < 0) {
      buffer
        .append('=')
        .append(fInitializer)
        .append(';')
        .append(Util.getLineSeparator(buffer.toString(), null));
    } else {
      buffer
        .append(fDocument, fNameRange[1] + 1, fInitializerRange[0] - fNameRange[1] - 1)
        .append(getInitializer())
        .append(';')
        .append(Util.getLineSeparator(buffer.toString(), null));
    }
  } else {
    buffer.append(';').append(Util.getLineSeparator(buffer.toString(), null));
  }
  return buffer.getContents();
}
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.util.CharArrayBuffer

}
/**
* @see IDOMNode#getCharacters()
*/
public char[] getCharacters() {
  CharArrayBuffer buffer= new CharArrayBuffer();
  appendContents(buffer);
  return buffer.getContents();
}
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.util.CharArrayBuffer

* contents can be obtained from the document.
*
* @see IDOMNode#getContents()
*/
public String getContents() {
  CharArrayBuffer buffer= new CharArrayBuffer();
  appendContents(buffer);
  return buffer.toString();
}
View Full Code Here

Examples of org.eclipse.jdt.internal.core.util.CharArrayBuffer

}
/**
* @see IDOMNode#getCharacters()
*/
public char[] getCharacters() {
  CharArrayBuffer buffer= new CharArrayBuffer();
  appendContents(buffer);
  return buffer.getContents();
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.