org.mvel2.compiler
Class PropertyVerifier
java.lang.Object
org.mvel2.compiler.AbstractParser
org.mvel2.optimizers.AbstractOptimizer
org.mvel2.compiler.PropertyVerifier
- All Implemented Interfaces:
- java.io.Serializable
public class PropertyVerifier
- extends AbstractOptimizer
This verifier is used by the compiler to enforce rules such as type strictness. It is, as side-effect, also
responsible for extracting type information.
- Author:
- Mike Brock, Dhanji Prasanna
- See Also:
- Serialized Form
| Fields inherited from class org.mvel2.compiler.AbstractParser |
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 |
java.lang.Class |
analyze()
Analyze the statement and return the known egress type. |
java.lang.Class |
getCtx()
|
java.util.List<java.lang.String> |
getInputs()
|
boolean |
isResolvedExternally()
|
void |
setCtx(java.lang.Class ctx)
|
void |
setInputs(java.util.List<java.lang.String> inputs)
|
| 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, handleSubstatement, handleUnion, ifThenElseBlockContinues, incNextNonBlank, isArithmeticOperator, isDebugSymbols, isNextIdentifier, isNextIdentifierOrLiteral, isNotValidNameorLabel, isReservedWord, isStatementNotManuallyTerminated, lastNonWhite, loadLanguageFeaturesByLevel, lookAhead, lookAhead, lookBehind, lookToLast, newContext, newContext, nextNonBlank, nextToken, nextTokenSkipSymbols, reduce, removeContext, resetParserContext, setCurrentThreadParserContext, setDebugSymbols, setExpression, setExpression, setLanguageLevel, skipCommentBlock, skipWhitespace, skipWhitespaceWithLineAccounting, tokenContinues, trimLeft, trimRight, trimWhitespace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyVerifier
public PropertyVerifier(char[] property,
ParserContext parserContext)
PropertyVerifier
public PropertyVerifier(java.lang.String property,
ParserContext parserContext)
PropertyVerifier
public PropertyVerifier(java.lang.String property,
ParserContext parserContext,
java.lang.Class root)
getInputs
public java.util.List<java.lang.String> getInputs()
setInputs
public void setInputs(java.util.List<java.lang.String> inputs)
analyze
public java.lang.Class analyze()
- Analyze the statement and return the known egress type.
- Returns:
- known engress type
isResolvedExternally
public boolean isResolvedExternally()
getCtx
public java.lang.Class getCtx()
setCtx
public void setCtx(java.lang.Class ctx)
Copyright © 2008. All Rights Reserved.