org.mvel2.compiler
Class ExpressionCompiler
java.lang.Object
org.mvel2.compiler.AbstractParser
org.mvel2.compiler.ExpressionCompiler
- All Implemented Interfaces:
- java.io.Serializable
public class ExpressionCompiler
- extends AbstractParser
This is the main MVEL compiler.
- 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, start, stk, variableFactory |
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 |
ExpressionCompiler
public ExpressionCompiler(java.lang.String expression)
ExpressionCompiler
public ExpressionCompiler(java.lang.String expression,
boolean verifying)
ExpressionCompiler
public ExpressionCompiler(char[] expression)
ExpressionCompiler
public ExpressionCompiler(java.lang.String expression,
ParserContext ctx)
ExpressionCompiler
public ExpressionCompiler(char[] expression,
ParserContext ctx)
compile
public CompiledExpression compile()
compile
@Deprecated
public CompiledExpression compile(ParserContext ctx)
- Deprecated.
_compile
public CompiledExpression _compile()
- Initiate an in-context compile. This method should really only be called by the internal API.
- Returns:
- compiled expression object
verify
protected ASTNode verify(ParserContext pCtx,
ASTNode tk)
isVerifying
public boolean isVerifying()
setVerifying
public void setVerifying(boolean verifying)
isVerifyOnly
public boolean isVerifyOnly()
setVerifyOnly
public void setVerifyOnly(boolean verifyOnly)
getReturnType
public java.lang.Class getReturnType()
setReturnType
public void setReturnType(java.lang.Class returnType)
getExpression
public java.lang.String getExpression()
getParserContextState
public ParserContext getParserContextState()
removeParserContext
public void removeParserContext()
isLiteralOnly
public boolean isLiteralOnly()
Copyright © 2011. All Rights Reserved.