public static class TPath.Rewriter extends TPath.MATCH_ONLY_00 implements Rewriter
The flavour of this visitor has been set to IS REWRITER
.
For details see the user documentation.
Modifier and Type | Field and Description |
---|---|
protected HashMap<Object,Object> |
cache |
protected HashSet<Object> |
mcache |
protected Object |
original |
_visitor_debug_stream, partial
Constructor and Description |
---|
Rewriter() |
Rewriter(TPath.Rewriter parent) |
Modifier and Type | Method and Description |
---|---|
protected void |
action(TPath.And e0) |
protected void |
action(TPath.AxisSpecifier e0) |
protected void |
action(TPath.BinaryExpr e0) |
protected void |
action(TPath.Comment e0) |
protected void |
action(TPath.ComparisonExpr e0) |
protected void |
action(TPath.Div e0) |
protected void |
action(TPath.Eq e0) |
protected void |
action(TPath.EqualityExpr e0) |
protected void |
action(TPath.Expr e0) |
protected void |
action(TPath.Filter e0) |
protected void |
action(TPath.FunctionCall e0) |
protected void |
action(TPath.Geq e0) |
protected void |
action(TPath.Gt e0) |
protected void |
action(TPath.Item e0) |
protected void |
action(TPath.Leq e0) |
protected void |
action(TPath.Literal e0) |
protected void |
action(TPath.LogicalExpr e0) |
protected void |
action(TPath.Lt e0) |
protected void |
action(TPath.Minus e0) |
protected void |
action(TPath.Mod e0) |
protected void |
action(TPath.Mult e0) |
protected void |
action(TPath.NameTest e0) |
protected void |
action(TPath.Neg e0) |
protected void |
action(TPath.Neq e0) |
protected void |
action(TPath.Node e0) |
protected void |
action(TPath.Number e0) |
protected void |
action(TPath.NumericExpr e0) |
protected void |
action(TPath.Or e0) |
protected void |
action(TPath.Paren e0) |
protected void |
action(TPath.PathExpr e0) |
protected void |
action(TPath.Plus e0) |
protected void |
action(TPath.ProcessingInstruction e0) |
protected void |
action(TPath.Root e0) |
protected void |
action(TPath.Step e0) |
protected void |
action(TPath.Test e0) |
protected void |
action(TPath.Text e0) |
protected void |
action(TPath.TypeTest e0) |
protected void |
action(TPath.UnaryExpr e0) |
protected void |
action(TPath.Union e0) |
protected void |
action(TPath.ValueExpr e0) |
protected void |
action(TPath.VariableReference e0) |
protected <T extends TPath.Item> |
breakLoop(T e0) |
Object |
getResult() |
boolean |
isMulti() |
protected boolean |
lookUp(Object x) |
protected void |
putToCache() |
void |
revert() |
<T> T |
rewrite_typed(T obj) |
Object |
rewrite(Object obj) |
protected void |
rewriteFields(TPath.And clone) |
protected void |
rewriteFields(TPath.AxisSpecifier clone) |
protected void |
rewriteFields(TPath.BinaryExpr clone) |
protected void |
rewriteFields(TPath.Comment clone) |
protected void |
rewriteFields(TPath.ComparisonExpr clone) |
protected void |
rewriteFields(TPath.Div clone) |
protected void |
rewriteFields(TPath.Eq clone) |
protected void |
rewriteFields(TPath.EqualityExpr clone) |
protected void |
rewriteFields(TPath.Expr clone) |
protected void |
rewriteFields(TPath.Filter clone) |
protected void |
rewriteFields(TPath.FunctionCall clone) |
protected void |
rewriteFields(TPath.Geq clone) |
protected void |
rewriteFields(TPath.Gt clone) |
protected void |
rewriteFields(TPath.Item clone) |
protected void |
rewriteFields(TPath.Leq clone) |
protected void |
rewriteFields(TPath.Literal clone) |
protected void |
rewriteFields(TPath.LogicalExpr clone) |
protected void |
rewriteFields(TPath.Lt clone) |
protected void |
rewriteFields(TPath.Minus clone) |
protected void |
rewriteFields(TPath.Mod clone) |
protected void |
rewriteFields(TPath.Mult clone) |
protected void |
rewriteFields(TPath.NameTest clone) |
protected void |
rewriteFields(TPath.Neg clone) |
protected void |
rewriteFields(TPath.Neq clone) |
protected void |
rewriteFields(TPath.Node clone) |
protected void |
rewriteFields(TPath.Number clone) |
protected void |
rewriteFields(TPath.NumericExpr clone) |
protected void |
rewriteFields(TPath.Or clone) |
protected void |
rewriteFields(TPath.Paren clone) |
protected void |
rewriteFields(TPath.PathExpr clone) |
protected void |
rewriteFields(TPath.Plus clone) |
protected void |
rewriteFields(TPath.ProcessingInstruction clone) |
protected void |
rewriteFields(TPath.Root clone) |
protected void |
rewriteFields(TPath.Step clone) |
protected void |
rewriteFields(TPath.Test clone) |
protected void |
rewriteFields(TPath.Text clone) |
protected void |
rewriteFields(TPath.TypeTest clone) |
protected void |
rewriteFields(TPath.UnaryExpr clone) |
protected void |
rewriteFields(TPath.Union clone) |
protected void |
rewriteFields(TPath.ValueExpr clone) |
protected void |
rewriteFields(TPath.VariableReference clone) |
void |
substitute_empty() |
void |
substitute(Object p) |
protected void |
useCache(boolean x) |
action, action, foreignObject, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, nomatch
protected Object original
public Rewriter()
public Rewriter(TPath.Rewriter parent)
protected void useCache(boolean x)
protected boolean lookUp(Object x)
protected void putToCache()
public boolean isMulti()
public void revert()
public void substitute(Object p)
public void substitute_empty()
protected <T extends TPath.Item> T breakLoop(T e0)
public Object getResult()
public <T> T rewrite_typed(T obj)
rewrite_typed
in interface Rewriter
protected void action(TPath.Item e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Item clone)
protected void action(TPath.Test e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Test clone)
protected void action(TPath.NameTest e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.NameTest clone)
protected void action(TPath.TypeTest e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.TypeTest clone)
protected void action(TPath.Comment e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Comment clone)
protected void action(TPath.Text e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Text clone)
protected void action(TPath.ProcessingInstruction e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.ProcessingInstruction clone)
protected void action(TPath.Node e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Node clone)
protected void action(TPath.AxisSpecifier e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.AxisSpecifier clone)
protected void action(TPath.Expr e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Expr clone)
protected void action(TPath.BinaryExpr e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.BinaryExpr clone)
protected void action(TPath.LogicalExpr e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.LogicalExpr clone)
protected void action(TPath.Or e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Or clone)
protected void action(TPath.And e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.And clone)
protected void action(TPath.EqualityExpr e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.EqualityExpr clone)
protected void action(TPath.Eq e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Eq clone)
protected void action(TPath.Neq e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Neq clone)
protected void action(TPath.ComparisonExpr e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.ComparisonExpr clone)
protected void action(TPath.Lt e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Lt clone)
protected void action(TPath.Leq e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Leq clone)
protected void action(TPath.Gt e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Gt clone)
protected void action(TPath.Geq e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Geq clone)
protected void action(TPath.NumericExpr e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.NumericExpr clone)
protected void action(TPath.Mult e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Mult clone)
protected void action(TPath.Div e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Div clone)
protected void action(TPath.Mod e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Mod clone)
protected void action(TPath.Plus e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Plus clone)
protected void action(TPath.Minus e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Minus clone)
protected void action(TPath.Union e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Union clone)
protected void action(TPath.Filter e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Filter clone)
protected void action(TPath.UnaryExpr e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.UnaryExpr clone)
protected void action(TPath.Neg e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Neg clone)
protected void action(TPath.Paren e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Paren clone)
protected void action(TPath.FunctionCall e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.FunctionCall clone)
protected void action(TPath.ValueExpr e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.ValueExpr clone)
protected void action(TPath.VariableReference e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.VariableReference clone)
protected void action(TPath.Literal e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Literal clone)
protected void action(TPath.Number e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Number clone)
protected void action(TPath.PathExpr e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.PathExpr clone)
protected void action(TPath.Root e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Root clone)
protected void action(TPath.Step e0)
action
in class TPath.MATCH_ONLY_00
protected void rewriteFields(TPath.Step clone)
see also the complete user documentation .