クラス TopLevelClass.Default.Type
java.lang.Object
TopLevelClass.Default.Node
TopLevelClass.Default.Type
- すべての実装されたインタフェース:
- TopLevelClass.Node, TopLevelClass.Type
- 含まれているインタフェース:
- TopLevelClass.Default
public static class TopLevelClass.Default.Type
- extends TopLevelClass.Default.Node
- implements TopLevelClass.Type
An implementation of Type
node.
- 導入されたバージョン:
- notavaCC 1.0
TopLevelClass.Default.Type
public TopLevelClass.Default.Type(TopLevelClass.Type source)
- Constructs a instance with the child nodes given by
source.getChildNodes()
and source.label()
. List
objects are copied.
- パラメータ:
source
- the source.
TopLevelClass.Default.Type
public TopLevelClass.Default.Type(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.
TopLevelClass.Default.Type
public TopLevelClass.Default.Type(List<TopLevelClass.Node> childNodes,
List/Node label)
label
public List/Node label()
- インタフェース
TopLevelClass.Type
の記述:
- Returns the child nodes labeled by
label
in the notavaCC source.
If the number of the labeled children should be zero or one, the type of the result is the most specific common type. In this case, if there is no labeled children, the result is null
.
If the number of the labeled children may be greater than one, the type of the result is the List
of the most specific common type. In this case, if there is no labeled children, the result isEmpty
or is empty array rather than null
.
- 定義:
- インタフェース
TopLevelClass.Type
内の label
- 戻り値:
- the child nodes labeled by
label
.
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
.