org.mvel2.compiler
public class ExpressionCompiler extends 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
Constructor and Description |
---|
ExpressionCompiler(char[] expression) |
ExpressionCompiler(char[] expression,
ParserContext ctx) |
ExpressionCompiler(java.lang.String expression) |
ExpressionCompiler(java.lang.String expression,
boolean verifying) |
ExpressionCompiler(java.lang.String expression,
ParserContext ctx) |
Modifier and Type | Method and Description |
---|---|
CompiledExpression |
_compile()
Initiate an in-context compile.
|
CompiledExpression |
compile() |
CompiledExpression |
compile(ParserContext ctx)
Deprecated.
|
java.lang.String |
getExpression() |
ParserContext |
getParserContextState() |
java.lang.Class |
getReturnType() |
boolean |
isLiteralOnly() |
boolean |
isVerifying() |
boolean |
isVerifyOnly() |
void |
removeParserContext() |
void |
setReturnType(java.lang.Class returnType) |
void |
setVerifying(boolean verifying) |
void |
setVerifyOnly(boolean verifyOnly) |
protected ASTNode |
verify(ParserContext pCtx,
ASTNode tk) |
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
public ExpressionCompiler(java.lang.String expression)
public ExpressionCompiler(java.lang.String expression, boolean verifying)
public ExpressionCompiler(char[] expression)
public ExpressionCompiler(java.lang.String expression, ParserContext ctx)
public ExpressionCompiler(char[] expression, ParserContext ctx)
public CompiledExpression compile()
@Deprecated public CompiledExpression compile(ParserContext ctx)
public CompiledExpression _compile()
protected ASTNode verify(ParserContext pCtx, ASTNode tk)
public boolean isVerifying()
public void setVerifying(boolean verifying)
public boolean isVerifyOnly()
public void setVerifyOnly(boolean verifyOnly)
public java.lang.Class getReturnType()
public void setReturnType(java.lang.Class returnType)
public java.lang.String getExpression()
public ParserContext getParserContextState()
public void removeParserContext()
public boolean isLiteralOnly()
Copyright © 2014. All Rights Reserved.