org.mvel2
Class MacroProcessor
java.lang.Object
org.mvel2.compiler.AbstractParser
org.mvel2.MacroProcessor
- All Implemented Interfaces:
- Serializable, PreProcessor
public class MacroProcessor
- extends AbstractParser
- implements PreProcessor
A simple, fast, macro processor. This processor works by simply replacing a matched identifier with a set of code.
- 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 |
MacroProcessor
public MacroProcessor()
MacroProcessor
public MacroProcessor(Map<String,Macro> macros)
parse
public char[] parse(char[] input)
- Specified by:
parse
in interface PreProcessor
parse
public String parse(String input)
- Specified by:
parse
in interface PreProcessor
getMacros
public Map<String,Macro> getMacros()
setMacros
public void setMacros(Map<String,Macro> macros)
captureToWhitespace
public void captureToWhitespace()
Copyright © 2011. All Rights Reserved.