public abstract class Node extends Object
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 |
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() |
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 node@SideEffectFree public final String toString()