public class ASTNodeImpl extends ASTRangeImpl implements ASTNode
| Constructor and Description |
|---|
ASTNodeImpl(ASTNode node)
Constructs a new ast node.
|
ASTNodeImpl(java.lang.String fullText)
Constructs a new ast node.
|
ASTNodeImpl(java.lang.String fullText,
int beginIndex,
int endIndex,
int line)
Constructs a new ast node.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFullText()
Returns the full text of the source in which this node is present.
|
int |
getLine()
Returns the line number where the node text starts.
|
java.lang.String |
getNodeText()
Returns the text of this node.
|
java.lang.String |
getText(ASTRange range)
Returns the text specified by the given range.
|
java.lang.String |
toString() |
contains, getBeginIndex, getEndIndex, getLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontains, getBeginIndex, getEndIndex, getLengthpublic ASTNodeImpl(java.lang.String fullText,
int beginIndex,
int endIndex,
int line)
fullText - beginIndex - endIndex - line - public ASTNodeImpl(java.lang.String fullText)
fullText - public ASTNodeImpl(ASTNode node)
node - public java.lang.String getFullText()
ASTNodegetFullText in interface ASTNodepublic int getLine()
ASTNodepublic java.lang.String getNodeText()
ASTNodegetNodeText in interface ASTNodepublic java.lang.String toString()
toString in class ASTRangeImplCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.