public class DynamicOptimizer extends AbstractOptimizer implements AccessorOptimizer
Modifier and Type | Field and Description |
---|---|
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, staticAccess, tkStart, WITH
CLASS_LITERALS, compileMode, ctx, cursor, debugSymbols, dStack, end, 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, st, start, stk, variableFactory
Constructor and Description |
---|
DynamicOptimizer() |
Modifier and Type | Method and Description |
---|---|
static void |
enforceTenureLimit() |
Class |
getEgressType() |
Object |
getResultOptPass() |
void |
init() |
boolean |
isLiteralOnly() |
static boolean |
isOverloaded() |
Accessor |
optimizeAccessor(ParserContext pCtx,
char[] property,
int start,
int offset,
Object ctx,
Object thisRef,
VariableResolverFactory factory,
boolean rootThisRef,
Class ingressType) |
Accessor |
optimizeCollection(ParserContext pCtx,
Object rootObject,
Class type,
char[] property,
int start,
int offset,
Object ctx,
Object thisRef,
VariableResolverFactory factory) |
Accessor |
optimizeObjectCreation(ParserContext pCtx,
char[] property,
int start,
int offset,
Object ctx,
Object thisRef,
VariableResolverFactory factory) |
Accessor |
optimizeSetAccessor(ParserContext pCtx,
char[] property,
int start,
int offset,
Object ctx,
Object thisRef,
VariableResolverFactory factory,
boolean rootThisRef,
Object value,
Class valueType) |
capture, findLastUnion, nextSubToken, scanTo, tryStaticAccess, whiteSpaceSkip
addFatalError, addFatalError, arithmeticFunctionReduction, captureIdentifier, captureToEOS, captureToEOSorEOL, captureToEOT, captureToNextTokenJunction, contextControl, expectEOS, expectNextChar_IW, getCurrentThreadParserContext, getCursor, getExpression, getParserContext, 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 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, int start, int offset, Object ctx, Object thisRef, VariableResolverFactory factory, boolean rootThisRef, Class ingressType)
optimizeAccessor
in interface AccessorOptimizer
public Accessor optimizeSetAccessor(ParserContext pCtx, char[] property, int start, int offset, Object ctx, Object thisRef, VariableResolverFactory factory, boolean rootThisRef, Object value, Class valueType)
optimizeSetAccessor
in interface AccessorOptimizer
public Accessor optimizeCollection(ParserContext pCtx, Object rootObject, Class type, char[] property, int start, int offset, Object ctx, Object thisRef, VariableResolverFactory factory)
optimizeCollection
in interface AccessorOptimizer
public Accessor optimizeObjectCreation(ParserContext pCtx, char[] property, int start, int offset, Object ctx, Object thisRef, VariableResolverFactory factory)
optimizeObjectCreation
in interface AccessorOptimizer
public static boolean isOverloaded()
public Object getResultOptPass()
getResultOptPass
in interface AccessorOptimizer
public Class getEgressType()
getEgressType
in interface AccessorOptimizer
public boolean isLiteralOnly()
isLiteralOnly
in interface AccessorOptimizer
Copyright © 2013. All rights reserved.