public abstract class Node
extends java.lang.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(java.lang.Object obj) |
int |
getBeginColumn()
Return the begin column of this node.
|
java.util.List<Comment> |
getBeginComments() |
int |
getBeginIndex() |
int |
getBeginLine()
Return the begin line of this node.
|
java.lang.Object |
getData()
Use this to retrieve additional information associated to this node.
|
int |
getEndColumn()
Return the end column of this node.
|
java.util.List<Comment> |
getEndComments() |
int |
getEndIndex() |
int |
getEndLine()
Return the end line of this node.
|
java.util.List<Comment> |
getInternalComments() |
int |
hashCode() |
void |
setBeginColumn(int beginColumn)
Sets the begin column of this node.
|
void |
setBeginComments(java.util.List<Comment> beginComments) |
void |
setBeginIndex(int beginIndex) |
void |
setBeginLine(int beginLine)
Sets the begin line of this node.
|
void |
setData(java.lang.Object data)
Use this to store additional information to this node.
|
void |
setEndColumn(int endColumn)
Sets the end column of this node.
|
void |
setEndComments(java.util.List<Comment> endComments) |
void |
setEndIndex(int endIndex) |
void |
setEndLine(int endLine)
Sets the end line of this node.
|
void |
setInternalComments(java.util.List<Comment> internalComments) |
java.lang.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 java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.util.List<Comment> getBeginComments()
public void setBeginComments(java.util.List<Comment> beginComments)
public java.util.List<Comment> getInternalComments()
public void setInternalComments(java.util.List<Comment> internalComments)
public java.util.List<Comment> getEndComments()
public void setEndComments(java.util.List<Comment> endComments)
public int getBeginIndex()
public void setBeginIndex(int beginIndex)
public int getEndIndex()
public void setEndIndex(int endIndex)
Copyright © 2015. All Rights Reserved.