Class ExpressionHelper
java.lang.Object
com.sk89q.worldedit.internal.expression.ExpressionHelper
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe argument should be wrapped in aLocalSlot.Constantbefore being passed.
- 
Method SummaryModifier 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_CONSTANTThe argument should be wrapped in aLocalSlot.Constantbefore being passed.- See Also:
 
 
- 
- 
Method Details- 
check
- 
check
- 
getErrorPosition
- 
evalException
- 
evalException
- 
evalException
- 
checkIterationspublic static void checkIterations(int iterations, int positionInLine) 
- 
resolveFunctionpublic static MethodHandle resolveFunction(Functions functions, ExpressionParser.FunctionCallContext ctx) 
- 
getArgumentHandleNamepublic 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.
 
-