public class ASTRangeImpl extends java.lang.Object implements ASTRange
| Constructor and Description |
|---|
ASTRangeImpl(ASTRange range) |
ASTRangeImpl(int beginIndex,
int endIndex) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int offset)
Returns
true if the offset index is contained in this range. |
int |
getBeginIndex()
Returns the begin index of the node text in the full text.
|
int |
getEndIndex()
Returns the end index of the node text.
|
int |
getLength()
Returns the length of the node text.
|
java.lang.String |
toString() |
public ASTRangeImpl(int beginIndex,
int endIndex)
public ASTRangeImpl(ASTRange range)
public int getBeginIndex()
ASTRangegetBeginIndex in interface ASTRangepublic int getEndIndex()
ASTRangegetEndIndex in interface ASTRangepublic int getLength()
ASTRangepublic boolean contains(int offset)
ASTRangetrue if the offset index is contained in this range.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.