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
- Direct Known Subclasses:
ExpressionInfo
,StructureInfo
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSyntaxElementInfo
(String[] patterns, Class<E> elementClass, String originClassPath) -
Method Summary
Modifier and TypeMethodDescriptionGet the class that represents this element.Get the original classpath for this element.String[]
Get the patterns of this syntax element.
-
Field Details
-
elementClass
-
patterns
-
originClassPath
-
-
Constructor Details
-
SyntaxElementInfo
public SyntaxElementInfo(String[] patterns, Class<E> elementClass, String originClassPath) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
-
Method Details
-
getElementClass
Get the class that represents this element.- Returns:
- The Class of the element
-
getPatterns
Get the patterns of this syntax element.- Returns:
- Array of Skript patterns for this element
-
getOriginClassPath
Get the original classpath for this element.- Returns:
- The original ClassPath for this element
-