Constructor and Description |
---|
LocalVarRange(ASTNode node)
Creates a local variable range from a given AST node.
|
LocalVarRange(int beginIndex,
int endIndex,
int line)
Creates a local variable range.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(int offset)
Returns
true if the offset index is contained in this range. |
boolean |
equals(java.lang.Object obj) |
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.
|
int |
getLine()
Returns the line number where the node text starts.
|
int |
hashCode() |
java.lang.String |
toString() |
public LocalVarRange(int beginIndex, int endIndex, int line)
beginIndex
- endIndex
- line
- public LocalVarRange(ASTNode node)
node
- public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int getBeginIndex()
ASTRange
getBeginIndex
in interface ASTRange
public int getEndIndex()
ASTRange
getEndIndex
in interface ASTRange
public int getLength()
ASTRange
public int getLine()
public boolean contains(int offset)
ASTRange
true
if the offset index is contained in this range.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.