Package ch.njol.skript.lang
Class ExpressionInfo<E extends Expression<T>,T>
java.lang.Object
ch.njol.skript.lang.SyntaxElementInfo<E>
ch.njol.skript.lang.ExpressionInfo<E,T>
- All Implemented Interfaces:
DefaultSyntaxInfos
,SyntaxInfo<E>
Represents an expression's information, for use when creating new instances of expressions.
-
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
FieldsFields 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
ConstructorsConstructorDescriptionExpressionInfo
(String[] patterns, Class<T> returnType, Class<E> expressionClass, String originClassPath) ExpressionInfo
(String[] patterns, Class<T> returnType, Class<E> expressionClass, String originClassPath, @Nullable ExpressionType expressionType) -
Method Summary
Modifier and TypeMethodDescription@Nullable ExpressionType
Get the type of this expression.Get the return type of this expression.Methods inherited from class ch.njol.skript.lang.SyntaxElementInfo
fromModern, getElementClass, getOriginClassPath, getPatterns, instance, origin, patterns, priority, toBuilder, type
-
Field Details
-
expressionType
-
returnType
-
-
Constructor Details
-
ExpressionInfo
public ExpressionInfo(String[] patterns, Class<T> returnType, Class<E> expressionClass, String originClassPath) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
ExpressionInfo
public ExpressionInfo(String[] patterns, Class<T> returnType, Class<E> expressionClass, String originClassPath, @Nullable @Nullable ExpressionType expressionType) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
-
Method Details
-
getReturnType
Get the return type of this expression.- Returns:
- The return type of this Expression
-
getExpressionType
Get the type of this expression.- Returns:
- The type of this Expression
-