|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.github.antlrjavaparser.api.Node
public abstract class Node
Abstract class for all nodes of the AST.
Constructor Summary | |
---|---|
Node()
|
|
Node(int beginLine,
int beginColumn,
int endLine,
int endColumn)
|
Method Summary | ||
---|---|---|
abstract
|
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support. |
|
abstract
|
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support. |
|
boolean |
equals(Object obj)
|
|
int |
getBeginColumn()
Return the begin column of this node. |
|
List<Comment> |
getBeginComments()
|
|
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. |
|
List<Comment> |
getEndComments()
|
|
int |
getEndLine()
Return the end line of this node. |
|
List<Comment> |
getInternalComments()
|
|
int |
hashCode()
|
|
void |
setBeginColumn(int beginColumn)
Sets the begin column of this node. |
|
void |
setBeginComments(List<Comment> beginComments)
|
|
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 |
setEndComments(List<Comment> endComments)
|
|
void |
setEndLine(int endLine)
Sets the end line of this node. |
|
void |
setInternalComments(List<Comment> internalComments)
|
|
String |
toString()
Return the String representation of this node. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Node()
public Node(int beginLine, int beginColumn, int endLine, int endColumn)
Method Detail |
---|
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 visitor
public 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()
toString
in class Object
public final int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public List<Comment> getBeginComments()
public void setBeginComments(List<Comment> beginComments)
public List<Comment> getInternalComments()
public void setInternalComments(List<Comment> internalComments)
public List<Comment> getEndComments()
public void setEndComments(List<Comment> endComments)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |