クラス TopLevelClass.Default.ListOrNode

java.lang.Object
  上位を拡張 TopLevelClass.Default.Node
      上位を拡張 TopLevelClass.Default.ListOrNode
すべての実装されたインタフェース:
TopLevelClass.Node
含まれているインタフェース:
TopLevelClass.Default

public static class TopLevelClass.Default.ListOrNode
extends TopLevelClass.Default.Node

An implementation of ListOrNode node.

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

コンストラクタの概要
TopLevelClass.Default.ListOrNode(List/Node source)
          Constructs a instance with the child nodes given by source.getChildNodes() and source.
TopLevelClass.Default.ListOrNode(TopLevelClass.NodeInitializationParameters parameters, boolean compact)
          Constructs a instance with the child nodes given by parameters.
 
メソッドの概要
 void replaceChild(TopLevelClass.Node oldChild, TopLevelClass.Node newChild)
          Replaces the child node oldChild with newChild.
 
クラス TopLevelClass.Default.Node から継承されたメソッド
getChildNodes, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
インタフェース TopLevelClass.Node から継承されたメソッド
getChildNodes
 

コンストラクタの詳細

TopLevelClass.Default.ListOrNode

public TopLevelClass.Default.ListOrNode(List/Node source)
Constructs a instance with the child nodes given by source.getChildNodes() and source.label(). List objects are copied.

パラメータ:
source - the source.

TopLevelClass.Default.ListOrNode

public TopLevelClass.Default.ListOrNode(TopLevelClass.NodeInitializationParameters parameters,
                                        boolean compact)
Constructs a instance with the child nodes given by parameters.

パラメータ:
parameters - the parameters for initialization.
compact - remove the children that are not labeled.
メソッドの詳細

replaceChild

public void replaceChild(TopLevelClass.Node oldChild,
                         TopLevelClass.Node newChild)
クラス TopLevelClass.Default.Node の記述:
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().

オーバーライド:
クラス TopLevelClass.Default.Node 内の replaceChild
パラメータ:
oldChild - a replaced child node.
newChild - a child node to replace oldChild.