public static class DTM.Rewriter extends DTM.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
Constructor and Description |
---|
Rewriter() |
Rewriter(DTM.Rewriter parent) |
Modifier and Type | Method and Description |
---|---|
protected void |
action(DTM.Any e0) |
protected void |
action(DTM.Attribute e0) |
protected void |
action(DTM.AttributeDefault e0) |
protected void |
action(DTM.AttributeType e0) |
protected void |
action(DTM.AttributeValue e0) |
protected void |
action(DTM.CData e0) |
protected void |
action(DTM.Choice e0) |
protected void |
action(DTM.Content e0) |
protected void |
action(DTM.CP e0) |
protected void |
action(DTM.Dtd e0) |
protected void |
action(DTM.Element e0) |
protected void |
action(DTM.ElementRef e0) |
protected void |
action(DTM.Empty e0) |
protected void |
action(DTM.Entities e0) |
protected void |
action(DTM.Entity e0) |
protected void |
action(DTM.Enumerated e0) |
protected void |
action(DTM.Id e0) |
protected void |
action(DTM.IdRef e0) |
protected void |
action(DTM.IdRefs e0) |
protected void |
action(DTM.Implied e0) |
protected void |
action(DTM.Mixed e0) |
protected void |
action(DTM.Named e0) |
protected void |
action(DTM.NMToken e0) |
protected void |
action(DTM.NMTokens e0) |
protected void |
action(DTM.Notation e0) |
protected void |
action(DTM.ProcessingInstruction e0) |
protected void |
action(DTM.Required e0) |
protected void |
action(DTM.Sequence e0) |
protected void |
action(DTM.Singleton e0) |
protected <T extends DTM.AttributeDefault> |
breakLoop(T e0) |
protected <T extends DTM.AttributeType> |
breakLoop(T e0) |
protected <T extends DTM.Content> |
breakLoop(T e0) |
protected <T extends DTM.Dtd> |
breakLoop(T e0) |
protected <T extends DTM.ElementRef> |
breakLoop(T e0) |
protected <T extends DTM.Named> |
breakLoop(T e0) |
protected <T extends DTM.ProcessingInstruction> |
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(DTM.Any clone) |
protected void |
rewriteFields(DTM.Attribute clone) |
protected void |
rewriteFields(DTM.AttributeDefault clone) |
protected void |
rewriteFields(DTM.AttributeType clone) |
protected void |
rewriteFields(DTM.AttributeValue clone) |
protected void |
rewriteFields(DTM.CData clone) |
protected void |
rewriteFields(DTM.Choice clone) |
protected void |
rewriteFields(DTM.Content clone) |
protected void |
rewriteFields(DTM.CP clone) |
protected void |
rewriteFields(DTM.Dtd clone) |
protected void |
rewriteFields(DTM.Element clone) |
protected void |
rewriteFields(DTM.ElementRef clone) |
protected void |
rewriteFields(DTM.Empty clone) |
protected void |
rewriteFields(DTM.Entities clone) |
protected void |
rewriteFields(DTM.Entity clone) |
protected void |
rewriteFields(DTM.Enumerated clone) |
protected void |
rewriteFields(DTM.Id clone) |
protected void |
rewriteFields(DTM.IdRef clone) |
protected void |
rewriteFields(DTM.IdRefs clone) |
protected void |
rewriteFields(DTM.Implied clone) |
protected void |
rewriteFields(DTM.Mixed clone) |
protected void |
rewriteFields(DTM.Named clone) |
protected void |
rewriteFields(DTM.NMToken clone) |
protected void |
rewriteFields(DTM.NMTokens clone) |
protected void |
rewriteFields(DTM.Notation clone) |
protected void |
rewriteFields(DTM.ProcessingInstruction clone) |
protected void |
rewriteFields(DTM.Required clone) |
protected void |
rewriteFields(DTM.Sequence clone) |
protected void |
rewriteFields(DTM.Singleton clone) |
void |
substitute_empty() |
void |
substitute(Object p) |
protected void |
useCache(boolean x) |
_visitor_trace, 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, nomatch
protected Object original
public Rewriter()
public Rewriter(DTM.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 DTM.Named> T breakLoop(T e0)
protected <T extends DTM.ElementRef> T breakLoop(T e0)
protected <T extends DTM.Dtd> T breakLoop(T e0)
protected <T extends DTM.Content> T breakLoop(T e0)
protected <T extends DTM.AttributeType> T breakLoop(T e0)
protected <T extends DTM.AttributeDefault> T breakLoop(T e0)
protected <T extends DTM.ProcessingInstruction> T breakLoop(T e0)
public Object getResult()
public <T> T rewrite_typed(T obj)
rewrite_typed
in interface Rewriter
protected void action(DTM.Named e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.Named clone)
protected void action(DTM.Element e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.Element clone)
protected void action(DTM.Attribute e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.Attribute clone)
protected void action(DTM.ElementRef e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.ElementRef clone)
protected void action(DTM.Dtd e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.Dtd clone)
protected void action(DTM.Content e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.Content clone)
protected void action(DTM.Mixed e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.Mixed clone)
protected void action(DTM.Any e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.Any clone)
protected void action(DTM.Empty e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.Empty clone)
protected void action(DTM.CP e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.CP clone)
protected void action(DTM.Sequence e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.Sequence clone)
protected void action(DTM.Choice e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.Choice clone)
protected void action(DTM.Singleton e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.Singleton clone)
protected void action(DTM.AttributeType e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.AttributeType clone)
protected void action(DTM.CData e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.CData clone)
protected void action(DTM.NMToken e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.NMToken clone)
protected void action(DTM.NMTokens e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.NMTokens clone)
protected void action(DTM.Id e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.Id clone)
protected void action(DTM.IdRef e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.IdRef clone)
protected void action(DTM.IdRefs e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.IdRefs clone)
protected void action(DTM.Entity e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.Entity clone)
protected void action(DTM.Entities e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.Entities clone)
protected void action(DTM.Notation e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.Notation clone)
protected void action(DTM.Enumerated e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.Enumerated clone)
protected void action(DTM.AttributeDefault e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.AttributeDefault clone)
protected void action(DTM.Required e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.Required clone)
protected void action(DTM.Implied e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.Implied clone)
protected void action(DTM.AttributeValue e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.AttributeValue clone)
protected void action(DTM.ProcessingInstruction e0)
action
in class DTM.MATCH_ONLY_00
protected void rewriteFields(DTM.ProcessingInstruction clone)
see also the complete user documentation .