public abstract class Node extends Object implements Serializable
| Constructor and Description |
|---|
Node() |
Node(int beginLine,
int beginColumn,
int endLine,
int endColumn) |
| Modifier and Type | Method and Description |
|---|---|
abstract <R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
abstract <A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
boolean |
contains(Node node2)
Return if this node contains another node according their line numbers
and columns
|
boolean |
equals(Object obj) |
int |
getBeginColumn()
Return the begin column of this node.
|
int |
getBeginLine()
Return the begin line of this node.
|
Object |
getData()
Use this to retrieve additional information associated to this node.
|
int |
getEndColumn()
Return the end column of this node.
|
int |
getEndLine()
Return the end line of this node.
|
int |
hashCode() |
boolean |
isInEqualLocation(Node node2)
Return if this node has the same columns and lines than another one.
|
boolean |
isNewNode()
Return if the node has not been retrieved from any input because its end
column and begin line is 0.
|
boolean |
isPreviousThan(Node node)
Return if this node is previous than another one according their line and
column numbers
|
void |
setBeginColumn(int beginColumn)
Sets the begin column of this node.
|
void |
setBeginLine(int beginLine)
Sets the begin line of this node.
|
void |
setData(Object data)
Use this to store additional information to this node.
|
void |
setEndColumn(int endColumn)
Sets the end column of this node.
|
void |
setEndLine(int endLine)
Sets the end line of this node.
|
String |
toString()
Return the String representation of this node.
|
public Node()
public Node(int beginLine,
int beginColumn,
int endLine,
int endColumn)
public abstract <R,A> R accept(GenericVisitor<R,A> v, A arg)
R - the type the return value of the visitorA - the type the argument passed for the visitorv - the visitor implementationarg - any value relevant for the visitorpublic abstract <A> void accept(VoidVisitor<A> v, A arg)
A - the type the argument passed for the visitorv - the visitor implementationarg - any value relevant for the visitorpublic final int getBeginColumn()
public final int getBeginLine()
public final Object getData()
public final int getEndColumn()
public final int getEndLine()
public final void setBeginColumn(int beginColumn)
beginColumn - the begin column of this nodepublic final void setBeginLine(int beginLine)
beginLine - the begin line of this nodepublic final void setData(Object data)
public final void setEndColumn(int endColumn)
endColumn - the end column of this nodepublic final void setEndLine(int endLine)
endLine - the end line of this nodepublic final String toString()
public boolean isNewNode()
public boolean contains(Node node2)
node2 - the probably contained nodepublic boolean isInEqualLocation(Node node2)
node2 - the node to comparepublic boolean isPreviousThan(Node node)
node - to compareCopyright © 2015. All rights reserved.