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>
@Deprecated(since="2.14",
forRemoval=true)
public class ExpressionInfo<E extends Expression<T>, T>
extends SyntaxElementInfo<E>
Deprecated, for removal: This API element is subject to removal in a future version.
Represents an expression's information, for use when creating new instances of expressions.
-
Nested Class Summary
Nested classes/interfaces inherited from interface DefaultSyntaxInfos
DefaultSyntaxInfos.Expression<E,R>, DefaultSyntaxInfos.Structure<E> Nested classes/interfaces inherited from interface SyntaxInfo
SyntaxInfo.Builder<B,E> -
Field Summary
FieldsModifier and TypeFieldDescription@Nullable ExpressionTypeDeprecated, 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.Fields inherited from class SyntaxElementInfo
elementClass, originClassPath, patternsFields inherited from interface SyntaxInfo
COMBINED, PATTERN_MATCHES_EVERYTHING, SIMPLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionExpressionInfo(String[] patterns, Class<T> returnType, Class<E> expressionClass, String originClassPath) Deprecated, for removal: This API element is subject to removal in a future version.ExpressionInfo(String[] patterns, Class<T> returnType, Class<E> expressionClass, String originClassPath, @Nullable ExpressionType expressionType) Deprecated, for removal: This API element is subject to removal in a future version.protectedExpressionInfo(DefaultSyntaxInfos.Expression<E, T> source) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescription@Nullable ExpressionTypeDeprecated, for removal: This API element is subject to removal in a future version.Get the type of this expression.Deprecated, for removal: This API element is subject to removal in a future version.Get the return type of this expression.Methods inherited from class SyntaxElementInfo
fromModern, getElementClass, getOriginClassPath, getPatterns, instance, origin, patterns, priority, toBuilder, type
-
Field Details
-
expressionType
Deprecated, for removal: This API element is subject to removal in a future version. -
returnType
-
-
Constructor Details
-
ExpressionInfo
public ExpressionInfo(String[] patterns, Class<T> returnType, Class<E> expressionClass, String originClassPath) throws IllegalArgumentException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IllegalArgumentException
-
ExpressionInfo
public ExpressionInfo(String[] patterns, Class<T> returnType, Class<E> expressionClass, String originClassPath, @Nullable @Nullable ExpressionType expressionType) throws IllegalArgumentException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IllegalArgumentException
-
ExpressionInfo
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getReturnType
-
getExpressionType
Deprecated, for removal: This API element is subject to removal in a future version.Get the type of this expression.- Returns:
- The type of this Expression
-
DefaultSyntaxInfos.Expression(DefaultSyntaxInfos.Expression.builder(Class, Class)) instead.