|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Node
Represents the interface of all Abstract Syntax Tree. This generic Node represents a production of the grammar and has the following properties :
nodeList()
.
nodeList()
.
list of attribute values
(values of terminal).
map of attributes
(association between the attribute name
and its value).
accept(nodeVisitor,param)
that permits to use visitor on a generic node.
FlatNode
and CompositeNode
supports :
XML
Nested Class Summary | |
---|---|
static interface |
Node.NoParent
A node type used as return type of the method getParent() to indicates
that the node is a root node without parent. |
static interface |
Node.NoValue
An attribute value type used as return type of the method attributeList() and
attributeMap() to indicates
that the node has no attribute value. |
Method Summary | ||
---|---|---|
|
accept(NodeVisitor<R,P,D,E> visitor,
P param)
call a visitor method depending of the real type of the current node. |
|
List<?> |
attributeList()
A read-only list of all attribute values of the current node. |
|
Map<String,?> |
attributeMap()
A read-only map containing couples of attribute name/attribute value. |
|
String |
getName()
Returns the name of the current node. |
|
Node |
getParent()
Returns the parent of the current node. |
|
List<? extends Node> |
nodeList()
A read-only list of all sub nodes of the current node. |
Method Detail |
---|
String getName()
Node getParent()
List<? extends Node> nodeList()
List<?> attributeList()
attributeMap()
Map<String,?> attributeMap()
<R,P,D,E extends Throwable> R accept(NodeVisitor<R,P,D,E> visitor, P param) throws E extends Throwable
R
- type of the return value.P
- type of the argument.D
- type of the data attached to each node.E
- type of the exception possibly raised by a visit method.visitor
- visitor to call.param
- parameter send to the visitor.
E
- could propagate a generice exception raised by the visitor.
E extends Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |