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, WITHcompileMode, 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() |
Class |
getEgressType() |
Object |
getResultOptPass() |
void |
init() |
boolean |
isLiteralOnly() |
Accessor |
optimizeAccessor(ParserContext pCtx,
char[] property,
Object ctx,
Object thisRef,
VariableResolverFactory factory,
boolean rootThisRef,
Class ingressType) |
Accessor |
optimizeCollection(ParserContext pCtx,
Object rootObject,
Class type,
char[] property,
Object ctx,
Object thisRef,
VariableResolverFactory factory) |
Accessor |
optimizeObjectCreation(ParserContext pCtx,
char[] property,
Object ctx,
Object thisRef,
VariableResolverFactory factory) |
Accessor |
optimizeSetAccessor(ParserContext pCtx,
char[] property,
Object ctx,
Object thisRef,
VariableResolverFactory factory,
boolean rootThisRef,
Object value,
Class valueType) |
capture, findLastUnion, nextSubToken, scanTo, tryStaticAccess, whiteSpaceSkipaddFatalError, 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, trimWhitespacepublic 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 AccessorOptimizerpublic static void enforceTenureLimit()
public Accessor optimizeAccessor(ParserContext pCtx, char[] property, Object ctx, Object thisRef, VariableResolverFactory factory, boolean rootThisRef, Class ingressType)
optimizeAccessor in interface AccessorOptimizerpublic Accessor optimizeSetAccessor(ParserContext pCtx, char[] property, Object ctx, Object thisRef, VariableResolverFactory factory, boolean rootThisRef, Object value, Class valueType)
optimizeSetAccessor in interface AccessorOptimizerpublic Accessor optimizeCollection(ParserContext pCtx, Object rootObject, Class type, char[] property, Object ctx, Object thisRef, VariableResolverFactory factory)
optimizeCollection in interface AccessorOptimizerpublic Accessor optimizeObjectCreation(ParserContext pCtx, char[] property, Object ctx, Object thisRef, VariableResolverFactory factory)
optimizeObjectCreation in interface AccessorOptimizerpublic Object getResultOptPass()
getResultOptPass in interface AccessorOptimizerpublic Class getEgressType()
getEgressType in interface AccessorOptimizerpublic boolean isLiteralOnly()
isLiteralOnly in interface AccessorOptimizerCopyright © 2014. All rights reserved.