org.mvel2.optimizers
Class AbstractOptimizer
java.lang.Object
org.mvel2.compiler.AbstractParser
org.mvel2.optimizers.AbstractOptimizer
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ASMAccessorOptimizer, DynamicOptimizer, PropertyVerifier, ReflectiveAccessorOptimizer
public class AbstractOptimizer
- extends AbstractParser
- Author:
- Christopher Brock
- See Also:
- Serialized Form
Fields inherited from class org.mvel2.compiler.AbstractParser |
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 |
Method Summary |
protected java.lang.String |
capture()
|
protected int |
findLastUnion()
|
protected int |
nextSubToken()
|
protected boolean |
scanTo(char c)
|
protected java.lang.Object |
tryStaticAccess()
Try static access of the property, and return an instance of the Field, Method of Class if successful. |
protected void |
whiteSpaceSkip()
Skip to the next non-whitespace position. |
Methods inherited from class org.mvel2.compiler.AbstractParser |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BEAN
protected static final int BEAN
- See Also:
- Constant Field Values
METH
protected static final int METH
- See Also:
- Constant Field Values
COL
protected static final int COL
- See Also:
- Constant Field Values
WITH
protected static final int WITH
- See Also:
- Constant Field Values
start
protected int start
collection
protected boolean collection
nullSafe
protected boolean nullSafe
currType
protected java.lang.Class currType
AbstractOptimizer
public AbstractOptimizer()
tryStaticAccess
protected java.lang.Object tryStaticAccess()
- Try static access of the property, and return an instance of the Field, Method of Class if successful.
- Returns:
- - Field, Method or Class instance.
nextSubToken
protected int nextSubToken()
capture
protected java.lang.String capture()
whiteSpaceSkip
protected void whiteSpaceSkip()
- Skip to the next non-whitespace position.
scanTo
protected boolean scanTo(char c)
- Parameters:
c
- - character to scan to.
- Returns:
- - returns true is end of statement is hit, false if the scan scar is countered.
findLastUnion
protected int findLastUnion()
Copyright © 2011. All Rights Reserved.