Package ch.njol.skript.lang
Class SyntaxElementInfo<E extends SyntaxElement>
java.lang.Object
ch.njol.skript.lang.SyntaxElementInfo<E>
- Type Parameters:
E- the syntax element this info is for
- All Implemented Interfaces:
DefaultSyntaxInfos,SyntaxInfo<E>
- Direct Known Subclasses:
ExpressionInfo,StructureInfo
@Deprecated(since="2.14",
forRemoval=true)
public class SyntaxElementInfo<E extends SyntaxElement>
extends Object
implements SyntaxInfo<E>
Deprecated, for removal: This API element is subject to removal in a future version.
-
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 TypeFieldDescriptionDeprecated, for removal: This API element is subject to removal in a future version.final StringDeprecated, for removal: This API element is subject to removal in a future version.final String[]Deprecated, for removal: This API element is subject to removal in a future version.Fields inherited from interface org.skriptlang.skript.registration.SyntaxInfo
COMBINED, PATTERN_MATCHES_EVERYTHING, SIMPLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionSyntaxElementInfo(String[] patterns, Class<E> elementClass, String originClassPath) Deprecated, for removal: This API element is subject to removal in a future version.protectedSyntaxElementInfo(SyntaxInfo<E> source) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic <I extends SyntaxElementInfo<E>,E extends SyntaxElement>
IfromModern(SyntaxInfo<? extends E> info) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Get the class that represents this element.Deprecated, for removal: This API element is subject to removal in a future version.Get the original classpath for this element.String[]Deprecated, for removal: This API element is subject to removal in a future version.Get the patterns of this syntax element.instance()Deprecated, for removal: This API element is subject to removal in a future version.origin()Deprecated, for removal: This API element is subject to removal in a future version.@Unmodifiable Collection<String> patterns()Deprecated, for removal: This API element is subject to removal in a future version.priority()Deprecated, for removal: This API element is subject to removal in a future version.SyntaxInfo.Builder<? extends SyntaxInfo.Builder<?, E>, E> Deprecated, for removal: This API element is subject to removal in a future version.type()Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
elementClass
Deprecated, for removal: This API element is subject to removal in a future version. -
patterns
Deprecated, for removal: This API element is subject to removal in a future version. -
originClassPath
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
SyntaxElementInfo
public SyntaxElementInfo(String[] patterns, Class<E> elementClass, String originClassPath) throws IllegalArgumentException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IllegalArgumentException
-
SyntaxElementInfo
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IllegalArgumentException
-
-
Method Details
-
getElementClass
Deprecated, for removal: This API element is subject to removal in a future version.Get the class that represents this element.- Returns:
- The Class of the element
-
getPatterns
Deprecated, for removal: This API element is subject to removal in a future version.Get the patterns of this syntax element.- Returns:
- Array of Skript patterns for this element
-
getOriginClassPath
Deprecated, for removal: This API element is subject to removal in a future version.Get the original classpath for this element.- Returns:
- The original ClassPath for this element
-
fromModern
@Internal @Contract("_ -> new") public static <I extends SyntaxElementInfo<E>,E extends SyntaxElement> I fromModern(SyntaxInfo<? extends E> info) Deprecated, for removal: This API element is subject to removal in a future version. -
toBuilder
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
toBuilderin interfaceSyntaxInfo<E extends SyntaxElement>- Returns:
- A builder representing this SyntaxInfo.
-
origin
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
originin interfaceSyntaxInfo<E extends SyntaxElement>- Returns:
- The origin of this syntax.
-
type
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
typein interfaceSyntaxInfo<E extends SyntaxElement>- Returns:
- The class providing the implementation of this syntax.
-
instance
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
instancein interfaceSyntaxInfo<E extends SyntaxElement>- Returns:
- A new instance of the class providing the implementation of this syntax.
-
patterns
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
patternsin interfaceSyntaxInfo<E extends SyntaxElement>- Returns:
- The patterns of this syntax.
-
priority
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
priorityin interfaceSyntaxInfo<E extends SyntaxElement>- Returns:
- The priority of this syntax, which dictates its position for matching during parsing.
-
SyntaxInfo(SyntaxInfo.builder(Class)) instead. Note that some syntax types have specificSyntaxInfoimplementations that they require.