org.mvel2.optimizers.dynamic
public class DynamicOptimizer extends AbstractOptimizer implements AccessorOptimizer
Modifier and Type | Field and Description |
---|---|
static DynamicClassLoader |
classLoader |
static int |
COLLECTION |
static int |
maximumTenure |
static int |
OBJ_CREATION |
static int |
REGULAR_ACCESSOR |
static int |
SET_ACCESSOR |
static int |
tenuringThreshold |
static long |
timeSpan |
static int |
totalRecycled |
BEAN, COL, collection, currType, METH, nullSafe, start, WITH
compileMode, ctx, cursor, debugSymbols, dStack, expr, fields, GET, GET_OR_CREATE, greedy, lastLineStart, lastNode, lastWasComment, lastWasIdentifier, lastWasLineLabel, length, LEVEL_0_PROPERTY_ONLY, LEVEL_1_BASIC_LANG, LEVEL_2_MULTI_STATEMENT, LEVEL_3_ITERATION, LEVEL_4_ASSIGNMENT, LEVEL_5_CONTROL_FLOW, line, literalOnly, LITERALS, OP_CONTINUE, OP_OVERFLOW, OP_RESET_FRAME, OP_TERMINATE, OPERATORS, parserContext, pCtx, REMOVE, SET, splitAccumulator, stk, variableFactory
Constructor and Description |
---|
DynamicOptimizer() |
Modifier and Type | Method and Description |
---|---|
static void |
enforceTenureLimit() |
java.lang.Class |
getEgressType() |
java.lang.Object |
getResultOptPass() |
void |
init() |
boolean |
isLiteralOnly() |
Accessor |
optimizeAccessor(ParserContext pCtx,
char[] property,
java.lang.Object ctx,
java.lang.Object thisRef,
VariableResolverFactory factory,
boolean rootThisRef,
java.lang.Class ingressType) |
Accessor |
optimizeCollection(ParserContext pCtx,
java.lang.Object rootObject,
java.lang.Class type,
char[] property,
java.lang.Object ctx,
java.lang.Object thisRef,
VariableResolverFactory factory) |
Accessor |
optimizeObjectCreation(ParserContext pCtx,
char[] property,
java.lang.Object ctx,
java.lang.Object thisRef,
VariableResolverFactory factory) |
Accessor |
optimizeSetAccessor(ParserContext pCtx,
char[] property,
java.lang.Object ctx,
java.lang.Object thisRef,
VariableResolverFactory factory,
boolean rootThisRef,
java.lang.Object value,
java.lang.Class valueType) |
capture, findLastUnion, nextSubToken, scanTo, tryStaticAccess, whiteSpaceSkip
addFatalError, addFatalError, addWarning, arithmeticFunctionReduction, captureIdentifier, captureToEOL, captureToEOS, captureToEOSorEOL, captureToEOT, captureToNextTokenJunction, contextControl, expectEOS, expectNextChar_IW, getCurrentSourceFileName, getCurrentThreadParserContext, getParserContext, getPCtx, handleSubstatement, handleUnion, ifThenElseBlockContinues, incNextNonBlank, isArithmeticOperator, isNextIdentifier, isNextIdentifierOrLiteral, isStatementNotManuallyTerminated, lastNonWhite, loadLanguageFeaturesByLevel, lookAhead, lookAhead, lookBehind, lookToLast, newContext, newContext, nextNonBlank, nextToken, nextTokenSkipSymbols, reduce, removeContext, resetParserContext, setCurrentThreadParserContext, setExpression, setExpression, setLanguageLevel, setPCtx, setupParser, skipWhitespace, tokenContinues, trimLeft, trimRight, trimWhitespace
public static DynamicClassLoader classLoader
public static int tenuringThreshold
public static long timeSpan
public static int maximumTenure
public static int totalRecycled
public static final int REGULAR_ACCESSOR
public static final int SET_ACCESSOR
public static final int COLLECTION
public static final int OBJ_CREATION
public void init()
init
in interface AccessorOptimizer
public static void enforceTenureLimit()
public Accessor optimizeAccessor(ParserContext pCtx, char[] property, java.lang.Object ctx, java.lang.Object thisRef, VariableResolverFactory factory, boolean rootThisRef, java.lang.Class ingressType)
optimizeAccessor
in interface AccessorOptimizer
public Accessor optimizeSetAccessor(ParserContext pCtx, char[] property, java.lang.Object ctx, java.lang.Object thisRef, VariableResolverFactory factory, boolean rootThisRef, java.lang.Object value, java.lang.Class valueType)
optimizeSetAccessor
in interface AccessorOptimizer
public Accessor optimizeCollection(ParserContext pCtx, java.lang.Object rootObject, java.lang.Class type, char[] property, java.lang.Object ctx, java.lang.Object thisRef, VariableResolverFactory factory)
optimizeCollection
in interface AccessorOptimizer
public Accessor optimizeObjectCreation(ParserContext pCtx, char[] property, java.lang.Object ctx, java.lang.Object thisRef, VariableResolverFactory factory)
optimizeObjectCreation
in interface AccessorOptimizer
public java.lang.Object getResultOptPass()
getResultOptPass
in interface AccessorOptimizer
public java.lang.Class getEgressType()
getEgressType
in interface AccessorOptimizer
public boolean isLiteralOnly()
isLiteralOnly
in interface AccessorOptimizer
Copyright © 2014. All Rights Reserved.