Uses of Enum Class
com.googlecode.aviator.lexer.token.OperatorType
Packages that use OperatorType
Package
Description
-
Uses of OperatorType in com.googlecode.aviator
Fields in com.googlecode.aviator with type parameters of type OperatorTypeModifier and TypeFieldDescriptionprivate final Map
<OperatorType, String> AviatorEvaluatorInstance.aliasOperatorTokens
alias operator tokenstatic final Map
<OperatorType, AviatorFunction> AviatorEvaluator.OPS_MAP
Deprecated.please use instance's field.private final Map
<OperatorType, AviatorFunction> AviatorEvaluatorInstance.opsMap
Methods in com.googlecode.aviator that return types with arguments of type OperatorTypeModifier and TypeMethodDescriptionAviatorEvaluatorInstance.getOpsMap()
Returns the operators map.Methods in com.googlecode.aviator with parameters of type OperatorTypeModifier and TypeMethodDescriptionstatic 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, String token) Set a alias token for the operator, only supports AND and OR operator right now.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.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.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 OperatorTypeModifier and TypeMethodDescriptionprivate int
OptimizeCodeGenerator.executeOperator
(Map<Integer, DelegateToken.DelegateTokenType> index2DelegateType, Token<?> operatorToken, OperatorType operatorType, int operatorIndex, int operandCount) private Map
<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 OperatorTypeModifier and TypeMethodDescriptionprivate void
ASMCodeGenerator.doCompareAndJump
(Token<?> lookhead, int ints, OperatorType opType) private void
ASMCodeGenerator.loadOpType
(OperatorType opType) private void
ASMCodeGenerator.visitBinOperator
(Token<?> token, OperatorType opType, 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, String methodName) -
Uses of OperatorType in com.googlecode.aviator.code.interpreter.ir
Fields in com.googlecode.aviator.code.interpreter.ir declared as OperatorTypeMethods in com.googlecode.aviator.code.interpreter.ir that return OperatorTypeMethods in com.googlecode.aviator.code.interpreter.ir with parameters of type OperatorTypeModifier and TypeMethodDescription(package private) static OperatorIR
OperatorIR.valueOf
(OperatorType op) Constructors in com.googlecode.aviator.code.interpreter.ir with parameters of type OperatorType -
Uses of OperatorType in com.googlecode.aviator.lexer.token
Fields in com.googlecode.aviator.lexer.token declared as OperatorTypeMethods in com.googlecode.aviator.lexer.token that return OperatorTypeModifier and TypeMethodDescriptionOperatorToken.getOperatorType()
static OperatorType
Returns the enum constant of this class with the specified name.static OperatorType[]
OperatorType.values()
Returns an array containing the constants of this enum class, in the order they are declared.Constructors in com.googlecode.aviator.lexer.token with parameters of type OperatorType -
Uses of OperatorType in com.googlecode.aviator.runtime.function.seq
Fields in com.googlecode.aviator.runtime.function.seq declared as OperatorTypeModifier and TypeFieldDescriptionprivate final OperatorType
SeqMakePredicateFunFunction.opType
private final OperatorType
SeqPredicateFunction.opType
Constructors in com.googlecode.aviator.runtime.function.seq with parameters of type OperatorTypeModifierConstructorDescriptionSeqMakePredicateFunFunction
(String name, OperatorType opType) SeqMakePredicateFunFunction
(String name, OperatorType opType, AviatorObject value) SeqPredicateFunction
(String name, OperatorType opType, AviatorObject value) SeqPredicateFunction
(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 OperatorTypeMethods in com.googlecode.aviator.runtime.function.system that return OperatorTypeConstructors in com.googlecode.aviator.runtime.function.system with parameters of type OperatorType -
Uses of OperatorType in com.googlecode.aviator.runtime.op
Methods in com.googlecode.aviator.runtime.op with parameters of type OperatorTypeModifier and TypeMethodDescriptionstatic boolean
OperationRuntime.containsOpFunction
(Map<String, Object> env, OperatorType opType) static AviatorObject
OperationRuntime.eval
(AviatorObject left, AviatorObject right, Map<String, Object> env, OperatorType opType) Eval with binary operatorstatic AviatorObject
OperationRuntime.eval
(AviatorObject arg, Map<String, Object> env, OperatorType opType) Eval with unary operatorstatic AviatorObject
OperationRuntime.eval
(AviatorObject left, Map<String, Object> env, AviatorObject right, OperatorType opType) Just likeOperationRuntime.eval(AviatorObject, AviatorObject, Map, OperatorType)
, but with difference arguments order.static AviatorObject
OperationRuntime.eval
(Map<String, Object> env, AviatorObject[] args, OperatorType opType) Eval with arguments array.private static AviatorObject
OperationRuntime.eval0
(AviatorObject left, AviatorObject right, Map<String, Object> env, OperatorType opType, AviatorFunction func) private static AviatorObject
OperationRuntime.eval0
(AviatorObject arg, Map<String, Object> env, OperatorType opType, AviatorFunction func) private static AviatorObject
OperationRuntime.eval0
(Map<String, Object> env, AviatorObject[] args, OperatorType opType, AviatorFunction func) static AviatorObject
OperationRuntime.evalOpFunction
(Map<String, Object> env, AviatorObject[] args, OperatorType opType, AviatorFunction func) static final boolean
OperationRuntime.hasRuntimeContext
(Map<String, Object> env, OperatorType opType) private static void
OperationRuntime.trace
(Map<String, Object> env, OperatorType opType, AviatorObject result, AviatorObject... args)