Class ExpressionHelper
java.lang.Object
com.sk89q.worldedit.internal.expression.ExpressionHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe argument should be wrapped in aLocalSlot.Constantbefore being passed. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidcheck(boolean condition, ParserRuleContext ctx, String message) static voidcheckIterations(int iterations, int positionInLine) static EvaluationExceptionevalException(int positionInLine, String message) static EvaluationExceptionevalException(ParserRuleContext ctx, String message) static EvaluationExceptionevalException(Token token, String message) static StringgetArgumentHandleName(String fnName, MethodType type, int i, ParserRuleContext arg) If this argument needs a handle, returns the name of the handle needed.static intgetErrorPosition(Token token) static MethodHandleresolveFunction(Functions functions, ExpressionParser.FunctionCallContext ctx)
-
Field Details
-
WRAPPED_CONSTANT
The argument should be wrapped in aLocalSlot.Constantbefore 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. Ifargisn't a valid handle reference, throws.
-