クラス TopLevelClass.Default.Node

java.lang.Object
  上位を拡張 TopLevelClass.Default.Node
すべての実装されたインタフェース:
TopLevelClass.Node
直系の既知のサブクラス:
TopLevelClass.Default.AmbiguityAbsorber, TopLevelClass.Default.ListOrNode, TopLevelClass.Default.Token, TopLevelClass.Default.Type
含まれているインタフェース:
TopLevelClass.Default

public abstract static class TopLevelClass.Default.Node
extends Object
implements TopLevelClass.Node

Provides a simple implementation of TopLevelClass.Node.

導入されたバージョン:
notavaCC 1.0

入れ子のクラスの概要
 
インタフェース TopLevelClass.Node から継承された入れ子のクラス/インタフェース
TopLevelClass.Node.ConcreteList
 
コンストラクタの概要
TopLevelClass.Default.Node(List<TopLevelClass.Node> childNodes)
          Constucts an instance.
 
メソッドの概要
 List<TopLevelClass.Node> getChildNodes()
          Returns the list of the child nodes of this.
 TopLevelClass.AmbiguityAbsorber getWrappedAmbiguityAbsorber()
           
 void replaceChild(TopLevelClass.Node oldChild, TopLevelClass.Node newChild)
          Replaces the child node oldChild with newChild.
 String toString()
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

TopLevelClass.Default.Node

public TopLevelClass.Default.Node(List<TopLevelClass.Node> childNodes)
Constucts an instance.

The returned list of getChildNodes() is the childNodes rather than a copy of it.

パラメータ:
childNodes - a list of child nodes.
導入されたバージョン:
notavaCC 1.0
メソッドの詳細

getChildNodes

public List<TopLevelClass.Node> getChildNodes()
インタフェース TopLevelClass.Node の記述:
Returns the list of the child nodes of this.

For a Node created by the program generated by ¬<><∪∪, the list should be modifiable and the nodes should be ordered by its position in the parsed text. However, the nodes constructed by the users of ¬<><∪∪ are not required to satisfy it.

定義:
インタフェース TopLevelClass.Node 内の getChildNodes
戻り値:
the list of the child nodes of this.

getWrappedAmbiguityAbsorber

public TopLevelClass.AmbiguityAbsorber getWrappedAmbiguityAbsorber()
定義:
インタフェース TopLevelClass.Node 内の getWrappedAmbiguityAbsorber

replaceChild

public void replaceChild(TopLevelClass.Node oldChild,
                         TopLevelClass.Node newChild)
Replaces the child node oldChild with newChild.

This method replaces oldChild in getChildNodes() with newChild. Also, this method replaces the values returned by TopLevelClass.Type.label().

パラメータ:
oldChild - a replaced child node.
newChild - a child node to replace oldChild.
導入されたバージョン:
notavaCC 1.0

toString

public String toString()
オーバーライド:
クラス Object 内の toString