Package ru.ispras.verilog.parser.core
Enum AbstractNode.NodeKind
- java.lang.Object
-
- java.lang.Enum<AbstractNode.NodeKind>
-
- ru.ispras.verilog.parser.core.AbstractNode.NodeKind
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AbstractNode.NodeKind>
- Enclosing class:
- AbstractNode<Tag extends java.lang.Enum<Tag>>
protected static enum AbstractNode.NodeKind extends java.lang.Enum<AbstractNode.NodeKind>
AbstractNode.NodeKind
classifies nodes according to their abilities to have names and scopes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK
Block, loop body, etc.CLASS
Module, function, etc.ELEMENT
Statement, expression, etc.NAMED_BLOCK
Named block.NAMED_PSEUDO_BLOCK
Named pseudo-block.OBJECT
Instance, variable, etc.PSEUDO_BLOCK
Unnamed pseudo-block.PSEUDO_ELEMENT
Statement, expression, etc.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ru.ispras.verilog.parser.core.AbstractNode.Name
hasName()
Returns the name existence indicator.ru.ispras.verilog.parser.core.AbstractNode.Scope
hasScope()
Returns the scope existence indicator.static AbstractNode.NodeKind
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AbstractNode.NodeKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLASS
public static final AbstractNode.NodeKind CLASS
Module, function, etc.
-
OBJECT
public static final AbstractNode.NodeKind OBJECT
Instance, variable, etc.
-
ELEMENT
public static final AbstractNode.NodeKind ELEMENT
Statement, expression, etc.
-
BLOCK
public static final AbstractNode.NodeKind BLOCK
Block, loop body, etc.
-
NAMED_BLOCK
public static final AbstractNode.NodeKind NAMED_BLOCK
Named block.
-
PSEUDO_ELEMENT
public static final AbstractNode.NodeKind PSEUDO_ELEMENT
Statement, expression, etc.
-
PSEUDO_BLOCK
public static final AbstractNode.NodeKind PSEUDO_BLOCK
Unnamed pseudo-block.
-
NAMED_PSEUDO_BLOCK
public static final AbstractNode.NodeKind NAMED_PSEUDO_BLOCK
Named pseudo-block.
-
-
Method Detail
-
values
public static AbstractNode.NodeKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AbstractNode.NodeKind c : AbstractNode.NodeKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractNode.NodeKind valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
hasName
public final ru.ispras.verilog.parser.core.AbstractNode.Name hasName()
Returns the name existence indicator.- Returns:
- the name existence indicator.
-
hasScope
public final ru.ispras.verilog.parser.core.AbstractNode.Scope hasScope()
Returns the scope existence indicator.- Returns:
- the scope existence indicator.
-
-