public static enum SyntaxNode.Kind extends java.lang.Enum<SyntaxNode.Kind>
SyntaxNode.Kind
classifies nodes according to the has-name and has-scope flags.Enum Constant and Description |
---|
BASIC
Node without name and scope (statement, expression, etc.).
|
BLOCK
Node with scope but without name (block, loop body, etc.).
|
CLASS
Node with name and scope (module, function, etc.).
|
OBJECT
Node with name but without scope (instance, variable, etc.).
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasName() |
boolean |
hasScope() |
static SyntaxNode.Kind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SyntaxNode.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SyntaxNode.Kind CLASS
public static final SyntaxNode.Kind OBJECT
public static final SyntaxNode.Kind BLOCK
public static final SyntaxNode.Kind BASIC
public static SyntaxNode.Kind[] values()
for (SyntaxNode.Kind c : SyntaxNode.Kind.values()) System.out.println(c);
public static SyntaxNode.Kind 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 boolean hasName()
public boolean hasScope()