public class Rewrite extends MATCH_ONLY_00 implements Rewriter
The flavour of this visitor has been set to IS REWRITER
.
See the pretty printed source file.
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
Modifier and Type | Method and Description |
---|---|
protected void |
action(Alt e0) |
protected void |
action(CharBinary e0) |
protected void |
action(CharCut e0) |
protected void |
action(CharExpr e0) |
protected void |
action(CharJoin e0) |
protected void |
action(CharMinus e0) |
protected void |
action(CharRange e0) |
protected void |
action(CharSetConst e0) |
protected void |
action(CharsRegExp e0) |
protected void |
action(Definition e0) |
protected void |
action(DefInstance e0) |
protected void |
action(Empty e0) |
protected void |
action(Enumeration e0) |
protected void |
action(Expr0 e0) |
protected void |
action(Expression e0) |
protected void |
action(Greedy e0) |
protected void |
action(GrMult e0) |
protected void |
action(GrUnary e0) |
protected void |
action(ImportItem e0) |
protected void |
action(Insertion e0) |
protected void |
action(LocString e0) |
protected void |
action(Module e0) |
protected void |
action(NamespaceDecl e0) |
protected void |
action(None e0) |
protected void |
action(Opt e0) |
protected void |
action(ParseParticle e0) |
protected void |
action(Pcdata e0) |
protected void |
action(Perm e0) |
protected void |
action(Plus e0) |
protected void |
action(Reference e0) |
protected void |
action(ResolvedModule e0) |
protected void |
action(Seq e0) |
protected void |
action(SourceItem e0) |
protected void |
action(Star e0) |
protected void |
action(StringConst e0) |
protected void |
action(Subst e0) |
protected void |
action(TagsRegExp e0) |
protected void |
action(XRegExp e0) |
protected <T extends DefInstance> |
breakLoop(T e0) |
protected <T extends Expr0> |
breakLoop(T e0) |
protected <T extends LocString> |
breakLoop(T e0) |
protected <T extends NamespaceDecl> |
breakLoop(T e0) |
protected <T extends SourceItem> |
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(Alt clone) |
protected void |
rewriteFields(CharBinary clone) |
protected void |
rewriteFields(CharCut clone) |
protected void |
rewriteFields(CharExpr clone) |
protected void |
rewriteFields(CharJoin clone) |
protected void |
rewriteFields(CharMinus clone) |
protected void |
rewriteFields(CharRange clone) |
protected void |
rewriteFields(CharSetConst clone) |
protected void |
rewriteFields(CharsRegExp clone) |
protected void |
rewriteFields(Definition clone) |
protected void |
rewriteFields(DefInstance clone) |
protected void |
rewriteFields(Empty clone) |
protected void |
rewriteFields(Enumeration clone) |
protected void |
rewriteFields(Expr0 clone) |
protected void |
rewriteFields(Expression clone) |
protected void |
rewriteFields(Greedy clone) |
protected void |
rewriteFields(GrMult clone) |
protected void |
rewriteFields(GrUnary clone) |
protected void |
rewriteFields(ImportItem clone) |
protected void |
rewriteFields(Insertion clone) |
protected void |
rewriteFields(LocString clone) |
protected void |
rewriteFields(Module clone) |
protected void |
rewriteFields(NamespaceDecl clone) |
protected void |
rewriteFields(None clone) |
protected void |
rewriteFields(Opt clone) |
protected void |
rewriteFields(ParseParticle clone) |
protected void |
rewriteFields(Pcdata clone) |
protected void |
rewriteFields(Perm clone) |
protected void |
rewriteFields(Plus clone) |
protected void |
rewriteFields(Reference clone) |
protected void |
rewriteFields(ResolvedModule clone) |
protected void |
rewriteFields(Seq clone) |
protected void |
rewriteFields(SourceItem clone) |
protected void |
rewriteFields(Star clone) |
protected void |
rewriteFields(StringConst clone) |
protected void |
rewriteFields(Subst clone) |
protected void |
rewriteFields(TagsRegExp clone) |
protected void |
rewriteFields(XRegExp clone) |
void |
substitute_empty() |
void |
substitute(Object p) |
protected void |
useCache(boolean x) |
_visitor_trace, action, action, 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, nomatch
protected Object original
public Rewrite()
public Rewrite(Rewrite 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 SourceItem> T breakLoop(T e0)
protected <T extends DefInstance> T breakLoop(T e0)
protected <T extends LocString> T breakLoop(T e0)
protected <T extends NamespaceDecl> T breakLoop(T e0)
protected <T extends Expr0> T breakLoop(T e0)
public Object getResult()
public <T> T rewrite_typed(T obj)
rewrite_typed
in interface Rewriter
protected void action(SourceItem e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(SourceItem clone)
protected void action(Module e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(Module clone)
protected void action(ResolvedModule e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(ResolvedModule clone)
protected void action(ImportItem e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(ImportItem clone)
protected void action(Definition e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(Definition clone)
protected void action(XRegExp e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(XRegExp clone)
protected void action(CharsRegExp e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(CharsRegExp clone)
protected void action(TagsRegExp e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(TagsRegExp clone)
protected void action(Enumeration e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(Enumeration clone)
protected void action(DefInstance e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(DefInstance clone)
protected void action(LocString e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(LocString clone)
protected void action(NamespaceDecl e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(NamespaceDecl clone)
protected void action(Expr0 e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(Expr0 clone)
protected void action(Expression e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(Expression clone)
protected void action(Empty e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(Empty clone)
protected void action(None e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(None clone)
protected void action(Pcdata e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(Pcdata clone)
protected void action(Insertion e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(Insertion clone)
protected void action(Reference e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(Reference clone)
protected void action(GrUnary e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(GrUnary clone)
protected void action(Greedy e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(Greedy clone)
protected void action(Opt e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(Opt clone)
protected void action(Star e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(Star clone)
protected void action(Plus e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(Plus clone)
protected void action(GrMult e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(GrMult clone)
protected void action(Alt e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(Alt clone)
protected void action(Perm e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(Perm clone)
protected void action(Seq e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(Seq clone)
protected void action(CharExpr e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(CharExpr clone)
protected void action(CharSetConst e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(CharSetConst clone)
protected void action(CharBinary e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(CharBinary clone)
protected void action(CharJoin e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(CharJoin clone)
protected void action(CharCut e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(CharCut clone)
protected void action(CharMinus e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(CharMinus clone)
protected void action(CharRange e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(CharRange clone)
protected void action(ParseParticle e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(ParseParticle clone)
protected void action(StringConst e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(StringConst clone)
protected void action(Subst e0)
action
in class MATCH_ONLY_00
protected void rewriteFields(Subst clone)
see also the complete user documentation .