public class ExpressionHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
WRAPPED_CONSTANT
The argument should be wrapped in a
LocalSlot.Constant before being passed. |
Modifier and Type | Method and Description |
---|---|
static void |
check(boolean condition,
org.antlr.v4.runtime.ParserRuleContext ctx,
java.lang.String message) |
static void |
checkIterations(int iterations,
org.antlr.v4.runtime.ParserRuleContext ctx) |
static EvaluationException |
evalException(org.antlr.v4.runtime.ParserRuleContext ctx,
java.lang.String message) |
static EvaluationException |
evalException(org.antlr.v4.runtime.Token token,
java.lang.String message) |
static java.lang.String |
getArgumentHandleName(java.lang.String fnName,
java.lang.invoke.MethodType type,
int i,
org.antlr.v4.runtime.ParserRuleContext arg)
If this argument needs a handle, returns the name of the handle needed.
|
static int |
getErrorPosition(org.antlr.v4.runtime.Token token) |
static java.lang.invoke.MethodHandle |
resolveFunction(Functions functions,
ExpressionParser.FunctionCallContext ctx) |
public static final java.lang.String WRAPPED_CONSTANT
LocalSlot.Constant
before being passed.public static void check(boolean condition, org.antlr.v4.runtime.ParserRuleContext ctx, java.lang.String message)
public static int getErrorPosition(org.antlr.v4.runtime.Token token)
public static EvaluationException evalException(org.antlr.v4.runtime.ParserRuleContext ctx, java.lang.String message)
public static EvaluationException evalException(org.antlr.v4.runtime.Token token, java.lang.String message)
public static void checkIterations(int iterations, org.antlr.v4.runtime.ParserRuleContext ctx)
public static java.lang.invoke.MethodHandle resolveFunction(Functions functions, ExpressionParser.FunctionCallContext ctx)
public static java.lang.String getArgumentHandleName(java.lang.String fnName, java.lang.invoke.MethodType type, int i, org.antlr.v4.runtime.ParserRuleContext arg)
null
. If arg
isn't a valid handle reference, throws.