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, WITHCLASS_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, 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, whiteSpaceSkipaddFatalError, addFatalError, arithmeticFunctionReduction, captureIdentifier, captureToEOS, captureToEOSorEOL, captureToEOT, captureToNextTokenJunction, expectEOS, expectNextChar_IW, getCursor, getExpression, handleSubstatement, handleUnion, ifThenElseBlockContinues, incNextNonBlank, isArithmeticOperator, isNextIdentifier, isNextIdentifierOrLiteral, isStatementNotManuallyTerminated, lastNonWhite, loadLanguageFeaturesByLevel, lookAhead, lookAhead, lookBehind, lookToLast, nextNonBlank, nextToken, nextTokenSkipSymbols, reduce, setExpression, setExpression, setLanguageLevel, setupParser, skipWhitespace, tokenContinues, trimLeft, trimRight, trimWhitespacepublic 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, int start, int offset, Object ctx, Object thisRef, VariableResolverFactory factory, boolean rootThisRef, Class ingressType)
optimizeAccessor in interface AccessorOptimizerpublic 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 AccessorOptimizerpublic Accessor optimizeCollection(ParserContext pCtx, Object rootObject, Class type, char[] property, int start, int offset, Object ctx, Object thisRef, VariableResolverFactory factory)
optimizeCollection in interface AccessorOptimizerpublic Accessor optimizeObjectCreation(ParserContext pCtx, char[] property, int start, int offset, Object ctx, Object thisRef, VariableResolverFactory factory)
optimizeObjectCreation in interface AccessorOptimizerpublic static boolean isOverloaded()
public Object getResultOptPass()
getResultOptPass in interface AccessorOptimizerpublic Class getEgressType()
getEgressType in interface AccessorOptimizerpublic boolean isLiteralOnly()
isLiteralOnly in interface AccessorOptimizerCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.