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>
Represents an expression's information, for use when creating new instances of expressions.
-
Field Summary
Fields inherited from class ch.njol.skript.lang.SyntaxElementInfo
elementClass, originClassPath, patterns
-
Constructor Summary
ConstructorDescriptionExpressionInfo
(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
getElementClass, getOriginClassPath, getPatterns
-
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
-