|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mvel2.compiler.AbstractParser
org.mvel2.MacroProcessor
public class MacroProcessor
A simple, fast, macro processor. This processor works by simply replacing a matched identifier with a set of code.
| Field Summary |
|---|
| Fields inherited from class org.mvel2.compiler.AbstractParser |
|---|
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 Summary | |
|---|---|
MacroProcessor()
|
|
MacroProcessor(java.util.Map<java.lang.String,Macro> macros)
|
|
| Method Summary | |
|---|---|
void |
captureToWhitespace()
|
java.util.Map<java.lang.String,Macro> |
getMacros()
|
char[] |
parse(char[] input)
|
java.lang.String |
parse(java.lang.String input)
|
void |
setMacros(java.util.Map<java.lang.String,Macro> macros)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MacroProcessor()
public MacroProcessor(java.util.Map<java.lang.String,Macro> macros)
| Method Detail |
|---|
public char[] parse(char[] input)
parse in interface PreProcessorpublic java.lang.String parse(java.lang.String input)
parse in interface PreProcessorpublic java.util.Map<java.lang.String,Macro> getMacros()
public void setMacros(java.util.Map<java.lang.String,Macro> macros)
public void captureToWhitespace()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||