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, getLength
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
contains, getBeginIndex, getEndIndex, getLength
public 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()
ASTNode
getFullText
in interface ASTNode
public int getLine()
ASTNode
public String getNodeText()
ASTNode
getNodeText
in interface ASTNode
public String toString()
toString
in class ASTRangeImpl
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.