Uses of Class
com.googlecode.aviator.lexer.token.OperatorType
-
-
Uses of OperatorType in com.googlecode.aviator
Fields in com.googlecode.aviator with type parameters of type OperatorType Modifier and Type Field Description private java.util.Map<OperatorType,java.lang.String>
AviatorEvaluatorInstance. aliasOperatorTokens
alias operator tokenstatic java.util.Map<OperatorType,AviatorFunction>
AviatorEvaluator. OPS_MAP
Deprecated.please use instance's field.private java.util.Map<OperatorType,AviatorFunction>
AviatorEvaluatorInstance. opsMap
Methods in com.googlecode.aviator that return types with arguments of type OperatorType Modifier and Type Method Description java.util.Map<OperatorType,AviatorFunction>
AviatorEvaluatorInstance. getOpsMap()
Returns the operators map.Methods in com.googlecode.aviator with parameters of type OperatorType Modifier and Type Method Description static void
AviatorEvaluator. addOpFunction(OperatorType opType, AviatorFunction function)
Add an operator aviator function,it's not thread-safe.void
AviatorEvaluatorInstance. addOpFunction(OperatorType opType, AviatorFunction function)
Add an operator aviator function,it's not thread-safe.void
AviatorEvaluatorInstance. aliasOperator(OperatorType type, java.lang.String token)
Set a alias token for the operator, only supports AND and OR operator right now.java.lang.String
AviatorEvaluatorInstance. getOperatorAliasToken(OperatorType type)
static AviatorFunction
AviatorEvaluator. getOpFunction(OperatorType opType)
Retrieve an operator aviator function by op type, return null if not found.It's not thread-safe.AviatorFunction
AviatorEvaluatorInstance. getOpFunction(OperatorType opType)
Retrieve an operator aviator function by op type, return null if not found.It's not thread-safe.static AviatorFunction
AviatorEvaluator. removeOpFunction(OperatorType opType)
Remove an operator aviator function by op type, it's not thread-safe.AviatorFunction
AviatorEvaluatorInstance. removeOpFunction(OperatorType opType)
Remove an operator aviator function by op type, it's not thread-safe. -
Uses of OperatorType in com.googlecode.aviator.code
Methods in com.googlecode.aviator.code with parameters of type OperatorType Modifier and Type Method Description private int
OptimizeCodeGenerator. executeOperator(java.util.Map<java.lang.Integer,DelegateToken.DelegateTokenType> index2DelegateType, Token<?> operatorToken, OperatorType operatorType, int operatorIndex, int operandCount)
private java.util.Map<java.lang.Integer,DelegateToken.DelegateTokenType>
OptimizeCodeGenerator. getIndex2DelegateTypeMap(OperatorType opType)
-
Uses of OperatorType in com.googlecode.aviator.code.asm
Methods in com.googlecode.aviator.code.asm with parameters of type OperatorType Modifier and Type Method Description private void
ASMCodeGenerator. doCompareAndJump(Token<?> lookhead, int ints, OperatorType opType)
private void
ASMCodeGenerator. loadOpType(OperatorType opType)
private void
ASMCodeGenerator. visitBinOperator(Token<?> token, OperatorType opType, java.lang.String methodName)
private void
ASMCodeGenerator. visitCompare(int ints, OperatorType opType)
private void
ASMCodeGenerator. visitLeftBranch(Token<?> lookhead, int ints, OperatorType opType)
private void
ASMCodeGenerator. visitRightBranch(Token<?> lookhead, int ints, OperatorType opType)
private void
ASMCodeGenerator. visitUnaryOperator(Token<?> lookhead, OperatorType opType, java.lang.String methodName)
-
Uses of OperatorType in com.googlecode.aviator.code.interpreter.ir
Fields in com.googlecode.aviator.code.interpreter.ir declared as OperatorType Modifier and Type Field Description private OperatorType
OperatorIR. op
Methods in com.googlecode.aviator.code.interpreter.ir that return OperatorType Modifier and Type Method Description OperatorType
OperatorIR. getOp()
Methods in com.googlecode.aviator.code.interpreter.ir with parameters of type OperatorType Modifier and Type Method Description (package private) static OperatorIR
OperatorIR. valueOf(OperatorType op)
Constructors in com.googlecode.aviator.code.interpreter.ir with parameters of type OperatorType Constructor Description OperatorIR(OperatorType op)
OperatorIR(OperatorType op, AviatorFunction func)
-
Uses of OperatorType in com.googlecode.aviator.lexer.token
Fields in com.googlecode.aviator.lexer.token declared as OperatorType Modifier and Type Field Description private OperatorType
OperatorToken. operatorType
Methods in com.googlecode.aviator.lexer.token that return OperatorType Modifier and Type Method Description OperatorType
OperatorToken. getOperatorType()
OperatorType
OperatorToken. getValue(java.util.Map<java.lang.String,java.lang.Object> env)
static OperatorType
OperatorType. valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OperatorType[]
OperatorType. values()
Returns an array containing the constants of this enum type, in the order they are declared.Constructors in com.googlecode.aviator.lexer.token with parameters of type OperatorType Constructor Description OperatorToken(Token<?> lookhead, OperatorType operatorType)
-
Uses of OperatorType in com.googlecode.aviator.runtime.function.seq
Fields in com.googlecode.aviator.runtime.function.seq declared as OperatorType Modifier and Type Field Description private OperatorType
SeqMakePredicateFunFunction. opType
private OperatorType
SeqPredicateFunction. opType
Constructors in com.googlecode.aviator.runtime.function.seq with parameters of type OperatorType Constructor Description SeqMakePredicateFunFunction(java.lang.String name, OperatorType opType)
SeqMakePredicateFunFunction(java.lang.String name, OperatorType opType, AviatorObject value)
SeqPredicateFunction(java.lang.String name, OperatorType opType, AviatorObject value)
SeqPredicateFunction(java.lang.String name, OperatorType opType, AviatorObject value, AviatorObject propertyName)
-
Uses of OperatorType in com.googlecode.aviator.runtime.function.system
Fields in com.googlecode.aviator.runtime.function.system declared as OperatorType Modifier and Type Field Description private OperatorType
BinaryFunction. opType
Methods in com.googlecode.aviator.runtime.function.system that return OperatorType Modifier and Type Method Description OperatorType
BinaryFunction. getOpType()
Constructors in com.googlecode.aviator.runtime.function.system with parameters of type OperatorType Constructor Description BinaryFunction(OperatorType opType)
-
Uses of OperatorType in com.googlecode.aviator.runtime.op
Methods in com.googlecode.aviator.runtime.op with parameters of type OperatorType Modifier and Type Method Description static boolean
OperationRuntime. containsOpFunction(java.util.Map<java.lang.String,java.lang.Object> env, OperatorType opType)
static AviatorObject
OperationRuntime. eval(AviatorObject left, AviatorObject right, java.util.Map<java.lang.String,java.lang.Object> env, OperatorType opType)
Eval with binary operatorstatic AviatorObject
OperationRuntime. eval(AviatorObject arg, java.util.Map<java.lang.String,java.lang.Object> env, OperatorType opType)
Eval with unary operatorstatic AviatorObject
OperationRuntime. eval(AviatorObject left, java.util.Map<java.lang.String,java.lang.Object> env, AviatorObject right, OperatorType opType)
Just likeOperationRuntime.eval(AviatorObject, AviatorObject, Map, OperatorType)
, but with difference arguments order.static AviatorObject
OperationRuntime. eval(java.util.Map<java.lang.String,java.lang.Object> env, AviatorObject[] args, OperatorType opType)
Eval with arguments array.private static AviatorObject
OperationRuntime. eval0(AviatorObject left, AviatorObject right, java.util.Map<java.lang.String,java.lang.Object> env, OperatorType opType, AviatorFunction func)
private static AviatorObject
OperationRuntime. eval0(AviatorObject arg, java.util.Map<java.lang.String,java.lang.Object> env, OperatorType opType, AviatorFunction func)
private static AviatorObject
OperationRuntime. eval0(java.util.Map<java.lang.String,java.lang.Object> env, AviatorObject[] args, OperatorType opType, AviatorFunction func)
static AviatorObject
OperationRuntime. evalOpFunction(java.util.Map<java.lang.String,java.lang.Object> env, AviatorObject[] args, OperatorType opType, AviatorFunction func)
static boolean
OperationRuntime. hasRuntimeContext(java.util.Map<java.lang.String,java.lang.Object> env, OperatorType opType)
private static void
OperationRuntime. trace(java.util.Map<java.lang.String,java.lang.Object> env, OperatorType opType, AviatorObject result, AviatorObject... args)
-