public class AbstractProcessor<NodeType extends TParseTreeNode> extends Object
| Constructor and Description |
|---|
AbstractProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterProcess(NodeType node)
method template.
|
void |
beforeProcess(NodeType node)
method template.
|
GFmtOpt |
getOption()
get all the format option
|
protected <E> E |
getParameter(Class<E> type)
get the first parameter
|
protected <E> E |
getParameter(Class<E> type,
int pos)
get the parameter object
|
void |
init(GFmtOpt option,
Object... parameters)
the init method
|
void |
process(NodeType node) |
public AbstractProcessor()
protected <E> E getParameter(Class<E> type)
E - protected <E> E getParameter(Class<E> type, int pos)
E - pos - public void beforeProcess(NodeType node)
node - public void afterProcess(NodeType node)
node -