Enum Class DefaultSyntaxInfos.Structure.NodeType
java.lang.Object
java.lang.Enum<DefaultSyntaxInfos.Structure.NodeType>
org.skriptlang.skript.registration.DefaultSyntaxInfos.Structure.NodeType
- All Implemented Interfaces:
Serializable
,Comparable<DefaultSyntaxInfos.Structure.NodeType>
,Constable
- Enclosing interface:
DefaultSyntaxInfos.Structure<E extends Structure>
public static enum DefaultSyntaxInfos.Structure.NodeType
extends Enum<DefaultSyntaxInfos.Structure.NodeType>
Represents type of
Node
s that can represent a Structure.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionFor Structures that can be represented using aSimpleNode
orSectionNode
.For Structures that can be represented using aSectionNode
.For Structures that can be represented using aSimpleNode
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SIMPLE
For Structures that can be represented using aSimpleNode
. -
SECTION
For Structures that can be represented using aSectionNode
. -
BOTH
For Structures that can be represented using aSimpleNode
orSectionNode
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
canBeSimple
public boolean canBeSimple()- Returns:
- Whether a Structure of this type can be represented using a
SimpleNode
.
-
canBeSection
public boolean canBeSection()- Returns:
- Whether a Structure of this type can be represented using a
SectionNode
.
-