fr.umlv.tatoo.runtime.ast
Interface Node

All Known Subinterfaces:
Token

public interface Node


Method Summary
 Object getKind()
          Returns the kind of node.
 Node getParent()
          Returns the parent of the current node.
 boolean isToken()
          Return true if the current node is a token.
 List<? extends Node> nodeList()
          A read-only list of all sub nodes of the current node.
 

Method Detail

isToken

boolean isToken()
Return true if the current node is a token.

Returns:
true if the current node is a token.
See Also:
Token

getKind

Object getKind()
Returns the kind of node.

Returns:
the kind of node.

getParent

Node getParent()
Returns the parent of the current node.

Returns:
the parent of the current node or null if the node has no parent.

nodeList

List<? extends Node> nodeList()
A read-only list of all sub nodes of the current node. This list provides access in constant time to each of its element.

Returns:
a list of all sub nodes.