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