fri.patterns.interpreter.parsergenerator.semantics
Class TreeBuilderSemantic.Node

java.lang.Object
  |
  +--fri.patterns.interpreter.parsergenerator.semantics.TreeBuilderSemantic.Node
Enclosing class:
TreeBuilderSemantic

public static class TreeBuilderSemantic.Node
extends java.lang.Object

Node class that representy a syntax tree node. All sub-nodes are contained as children.


Constructor Summary
TreeBuilderSemantic.Node(Rule rule, java.util.List inputTokens, java.util.List ranges)
           
 
Method Summary
 java.util.List getInputTokens()
          Returns the instance token list.
 java.util.List getRanges()
          Returns the instance token line range list.
 Rule getRule()
          Returns the rule of this syntax tree node.
 java.lang.String toString()
          Returns "nonterminal@hashcode" as String representation of this node.
 java.lang.String toString(int indent)
          Returns the human readable representation of this node and all sub-nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeBuilderSemantic.Node

public TreeBuilderSemantic.Node(Rule rule,
                                java.util.List inputTokens,
                                java.util.List ranges)
Method Detail

getRule

public Rule getRule()
Returns the rule of this syntax tree node.


getInputTokens

public java.util.List getInputTokens()
Returns the instance token list.


getRanges

public java.util.List getRanges()
Returns the instance token line range list.


toString

public java.lang.String toString()
Returns "nonterminal@hashcode" as String representation of this node.

Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(int indent)
Returns the human readable representation of this node and all sub-nodes.

Parameters:
indent - spaces to indent on sub-nodes.