|
Lombok.ast - v0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Node
Method Summary | |
---|---|
void |
accept(AstVisitor visitor)
|
Node |
addMessage(Message message)
|
Node |
copy()
|
boolean |
detach(Node child)
If the provided child node is a child of this node, the child/parent link will be deleted. |
List<Node> |
getChildren()
|
Node |
getGeneratedBy()
Returns the node that is responsible for generating this node. |
List<Message> |
getMessages()
|
Node |
getParent()
|
Position |
getPosition()
|
boolean |
hasMessage(String key)
|
boolean |
hasParent()
|
boolean |
isGenerated()
Returns true if this node is generated (not actually present in the source). |
boolean |
replace(Node replacement)
Replaces this node with the replacement. |
boolean |
replaceChild(Node child,
Node replacement)
If the provided child node is a child of this node, the child/parent link will be deleted. |
Node |
setPosition(Position position)
|
String |
toString()
|
void |
unparent()
Severs the child/parent link between this node and its parent. |
Method Detail |
---|
boolean isGenerated()
true
if this node is generated (not actually present in the source).
Node getGeneratedBy()
null
if this node is not generated.
boolean hasParent()
List<Node> getChildren()
boolean replaceChild(Node child, Node replacement) throws AstException
true
if child
was indeed a direct child of this node (it will have been replaced).
AstException
- If the replacement is of the wrong type and the location for the replacement does not allow off-type assignments,
which is true for those nodes that only have an astName()
method and not a rawName()
method.boolean detach(Node child)
true
if child
was indeed a direct child of this node (it will have been detached).unparent()
boolean replace(Node replacement) throws AstException
true
if the node was indeed replaced. Replacement fails if this node has no parent.
AstException
- If the replacement is of the wrong type and the location for the replacement does not allow off-type assignments,
which is true for those nodes that only have an astName()
method and not a rawName()
method.void unparent()
detach(Node)
Node setPosition(Position position)
void accept(AstVisitor visitor)
Node copy()
String toString()
toString
in class Object
Node getParent()
Position getPosition()
Node addMessage(Message message)
boolean hasMessage(String key)
List<Message> getMessages()
|
Lombok.ast - v0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |