Interface TopLevelClass.Type

All Superinterfaces:
TopLevelClass.Node
All Known Implementing Classes:
TopLevelClass.Default.Type
Enclosing interface:
TopLevelClass

public static interface TopLevelClass.Type
extends TopLevelClass.Node

An abstract-syntax-tree node Type.

A TypeDefinition generates this class. The word Type is given by IDENITIFIER. If TypeDefinition is $protected or $private, this class is protected or private. Otherwise, it is public.

Since:
notavaCC 1.0

Field Summary
static int ID
          The ID value of the type.
 
Method Summary
 List/Node label()
          Returns the child nodes labeled by label in the notavaCC source.
 
Methods inherited from interface TopLevelClass.Node
getChildNodes
 

Field Detail

ID

public static final int ID
The ID value of the type. This field is generated if the instance of this type may be included by the abstract syntx trees.

Since:
notavaCC 1.0
See Also:
TopLevelClass.createNode(int, TopLevelClass.NodeInitializationParameters),
Method Detail

label

public List/Node label()
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 or array (selected by a option at the compile) 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.

Returns:
the child nodes labeled by label.
Since:
notavaCC 1.0