Class ExpressionHelper
java.lang.Object
com.sk89q.worldedit.internal.expression.ExpressionHelper
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The argument should be wrapped in aLocalSlot.Constant
before being passed. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
check
(boolean condition, ParserRuleContext ctx, String message) static void
checkIterations
(int iterations, int positionInLine) static EvaluationException
evalException
(int positionInLine, String message) static EvaluationException
evalException
(ParserRuleContext ctx, String message) static EvaluationException
evalException
(Token token, String message) static String
getArgumentHandleName
(String fnName, MethodType type, int i, ParserRuleContext arg) If this argument needs a handle, returns the name of the handle needed.static int
getErrorPosition
(Token token) static MethodHandle
resolveFunction
(Functions functions, ExpressionParser.FunctionCallContext ctx)
-
Field Details
-
WRAPPED_CONSTANT
The argument should be wrapped in aLocalSlot.Constant
before being passed.- See Also:
-
-
Method Details
-
check
-
check
-
getErrorPosition
-
evalException
-
evalException
-
evalException
-
checkIterations
public static void checkIterations(int iterations, int positionInLine) -
resolveFunction
public static MethodHandle resolveFunction(Functions functions, ExpressionParser.FunctionCallContext ctx) -
getArgumentHandleName
public static String getArgumentHandleName(String fnName, MethodType type, int i, ParserRuleContext arg) If this argument needs a handle, returns the name of the handle needed. Otherwise, returnsnull
. Ifarg
isn't a valid handle reference, throws.
-