Package org.mvel2
Class MacroProcessor
java.lang.Object
org.mvel2.compiler.AbstractParser
org.mvel2.MacroProcessor
- All Implemented Interfaces:
Serializable
,Parser
,PreProcessor
A simple, fast, macro processor. This processor works by simply replacing a matched identifier with a set of code.
- See Also:
-
Field Summary
FieldsFields inherited from class org.mvel2.compiler.AbstractParser
CLASS_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_NOT_LITERAL, OP_OVERFLOW, OP_RESET_FRAME, OP_TERMINATE, OPERATORS, pCtx, REMOVE, SET, splitAccumulator, st, start, stk, variableFactory
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.mvel2.compiler.AbstractParser
addFatalError, 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, trimWhitespace
-
Field Details
-
macros
-
-
Constructor Details
-
MacroProcessor
public MacroProcessor() -
MacroProcessor
-
-
Method Details
-
parse
public char[] parse(char[] input) - Specified by:
parse
in interfacePreProcessor
-
parse
- Specified by:
parse
in interfacePreProcessor
-
getMacros
-
setMacros
-
captureToWhitespace
public void captureToWhitespace()
-