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 and 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.
|
Modifier and Type | Method and 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.
|
public static final AbstractNode.NodeKind CLASS
public static final AbstractNode.NodeKind OBJECT
public static final AbstractNode.NodeKind ELEMENT
public static final AbstractNode.NodeKind BLOCK
public static final AbstractNode.NodeKind NAMED_BLOCK
public static final AbstractNode.NodeKind PSEUDO_ELEMENT
public static final AbstractNode.NodeKind PSEUDO_BLOCK
public static final AbstractNode.NodeKind NAMED_PSEUDO_BLOCK
public static AbstractNode.NodeKind[] values()
for (AbstractNode.NodeKind c : AbstractNode.NodeKind.values()) System.out.println(c);
public static AbstractNode.NodeKind valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final ru.ispras.verilog.parser.core.AbstractNode.Name hasName()
public final ru.ispras.verilog.parser.core.AbstractNode.Scope hasScope()