Class StructureInfo<E extends Structure>
java.lang.Object
ch.njol.skript.lang.SyntaxElementInfo<E>
org.skriptlang.skript.lang.structure.StructureInfo<E>
- All Implemented Interfaces:
DefaultSyntaxInfos
,SyntaxInfo<E>
- Direct Known Subclasses:
SkriptEventInfo
Special
SyntaxElementInfo
for DefaultSyntaxInfos.Structure
s that may contain information such as the EntryValidator
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.skriptlang.skript.registration.DefaultSyntaxInfos
DefaultSyntaxInfos.Expression<E extends Expression<R>,
R>, DefaultSyntaxInfos.Structure<E extends Structure> Nested classes/interfaces inherited from interface org.skriptlang.skript.registration.SyntaxInfo
SyntaxInfo.Builder<B extends SyntaxInfo.Builder<B,
E>, E extends SyntaxElement> -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @Nullable EntryValidator
final boolean
Whether the Structure is represented by aSimpleNode
.Fields inherited from class ch.njol.skript.lang.SyntaxElementInfo
elementClass, originClassPath, patterns
Fields inherited from interface org.skriptlang.skript.registration.SyntaxInfo
COMBINED, PATTERN_MATCHES_EVERYTHING, SIMPLE
-
Constructor Summary
ConstructorsConstructorDescriptionStructureInfo
(String[] patterns, Class<E> c, String originClassPath) StructureInfo
(String[] patterns, Class<E> elementClass, String originClassPath, boolean simple) StructureInfo
(String[] patterns, Class<E> elementClass, String originClassPath, @Nullable EntryValidator entryValidator) StructureInfo
(String[] patterns, Class<E> elementClass, String originClassPath, @Nullable EntryValidator entryValidator, DefaultSyntaxInfos.Structure.NodeType nodeType) -
Method Summary
Methods inherited from class ch.njol.skript.lang.SyntaxElementInfo
fromModern, getElementClass, getOriginClassPath, getPatterns, instance, origin, patterns, priority, toBuilder, type
-
Field Details
-
entryValidator
-
simple
public final boolean simpleWhether the Structure is represented by aSimpleNode
. -
nodeType
-
-
Constructor Details
-
StructureInfo
public StructureInfo(String[] patterns, Class<E> c, String originClassPath) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
StructureInfo
public StructureInfo(String[] patterns, Class<E> elementClass, String originClassPath, boolean simple) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
StructureInfo
public StructureInfo(String[] patterns, Class<E> elementClass, String originClassPath, @Nullable @Nullable EntryValidator entryValidator) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
StructureInfo
@Experimental public StructureInfo(String[] patterns, Class<E> elementClass, String originClassPath, @Nullable @Nullable EntryValidator entryValidator, DefaultSyntaxInfos.Structure.NodeType nodeType) throws IllegalArgumentException - Throws:
IllegalArgumentException
-