Java org.eclipse.jdt.core.dom Comment fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jdt.core.dom Comment fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jdt.core.dom Comment.

The text is from its open source code.

Method

voidaccept(ASTVisitor visitor)
Accepts the given visitor on a visit of the current node.
voiddelete()
Removes this node from its parent.
intgetLength()
Returns the length in characters of the original source file indicating where the source fragment corresponding to this node ends.
intgetNodeType()
Returns an integer value identifying the type of this concrete AST node.
ASTNodegetParent()
Returns this node's parent node, or null if this is the root node.
ObjectgetProperty(String propertyName)
Returns the value of the named property of this node, or null if none.
intgetStartPosition()
Returns the character index into the original source file indicating where the source fragment corresponding to this node begins.
booleanisBlockComment()
Returns whether this comment is a block comment (BlockComment).
booleanisDocComment()
Returns whether this comment is a doc comment (Javadoc).
booleanisLineComment()
Returns whether this comment is a line comment (LineComment).
voidsetAlternateRoot(ASTNode root)
Returns the root AST node that this comment occurs within, or null if none (or not recorded).
voidsetProperty(String propertyName, Object data)
Sets the named property of this node to the given value, or to null to clear it.
voidsetSourceRange(int startPosition, int length)
Sets the source range of the original source file where the source fragment corresponding to this node was found.
StringtoString()
Returns a string representation of this node suitable for debugging purposes only.