public static class DTD.Rewriter extends DTD.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(DTD.Rewriter parent) |
Modifier and Type | Method and Description |
---|---|
protected void |
action(DTD.Abbrev e0) |
protected void |
action(DTD.Any e0) |
protected void |
action(DTD.AttDef e0) |
protected void |
action(DTD.Attlist e0) |
protected void |
action(DTD.AttType e0) |
protected void |
action(DTD.AttTypeAbbrev e0) |
protected void |
action(DTD.AttTypeConstant e0) |
protected void |
action(DTD.AttValue e0) |
protected void |
action(DTD.Choice e0) |
protected void |
action(DTD.Comment e0) |
protected void |
action(DTD.ContentModel e0) |
protected void |
action(DTD.ContentModelConstant e0) |
protected void |
action(DTD.CP e0) |
protected void |
action(DTD.DefaultDecl e0) |
protected void |
action(DTD.DefaultDeclConstant e0) |
protected void |
action(DTD.Dtd e0) |
protected void |
action(DTD.Element e0) |
protected void |
action(DTD.Empty e0) |
protected void |
action(DTD.Entity e0) |
protected void |
action(DTD.EntityContext e0) |
protected void |
action(DTD.EntityValue e0) |
protected void |
action(DTD.Enumerated e0) |
protected void |
action(DTD.MarkupDecl e0) |
protected void |
action(DTD.Mixed e0) |
protected void |
action(DTD.NmToken e0) |
protected void |
action(DTD.Notation e0) |
protected void |
action(DTD.PI e0) |
protected void |
action(DTD.Seq e0) |
protected void |
action(DTD.Singleton e0) |
protected void |
action(DTD.TextDecl e0) |
protected <T extends DTD.AttDef> |
breakLoop(T e0) |
protected <T extends DTD.AttType> |
breakLoop(T e0) |
protected <T extends DTD.ContentModel> |
breakLoop(T e0) |
protected <T extends DTD.DefaultDecl> |
breakLoop(T e0) |
protected <T extends DTD.Dtd> |
breakLoop(T e0) |
protected <T extends DTD.EntityContext> |
breakLoop(T e0) |
protected <T extends DTD.EntityValue> |
breakLoop(T e0) |
protected <T extends DTD.MarkupDecl> |
breakLoop(T e0) |
protected <T extends DTD.NmToken> |
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(DTD.Abbrev clone) |
protected void |
rewriteFields(DTD.Any clone) |
protected void |
rewriteFields(DTD.AttDef clone) |
protected void |
rewriteFields(DTD.Attlist clone) |
protected void |
rewriteFields(DTD.AttType clone) |
protected void |
rewriteFields(DTD.AttTypeAbbrev clone) |
protected void |
rewriteFields(DTD.AttTypeConstant clone) |
protected void |
rewriteFields(DTD.AttValue clone) |
protected void |
rewriteFields(DTD.Choice clone) |
protected void |
rewriteFields(DTD.Comment clone) |
protected void |
rewriteFields(DTD.ContentModel clone) |
protected void |
rewriteFields(DTD.ContentModelConstant clone) |
protected void |
rewriteFields(DTD.CP clone) |
protected void |
rewriteFields(DTD.DefaultDecl clone) |
protected void |
rewriteFields(DTD.DefaultDeclConstant clone) |
protected void |
rewriteFields(DTD.Dtd clone) |
protected void |
rewriteFields(DTD.Element clone) |
protected void |
rewriteFields(DTD.Empty clone) |
protected void |
rewriteFields(DTD.Entity clone) |
protected void |
rewriteFields(DTD.EntityContext clone) |
protected void |
rewriteFields(DTD.EntityValue clone) |
protected void |
rewriteFields(DTD.Enumerated clone) |
protected void |
rewriteFields(DTD.MarkupDecl clone) |
protected void |
rewriteFields(DTD.Mixed clone) |
protected void |
rewriteFields(DTD.NmToken clone) |
protected void |
rewriteFields(DTD.Notation clone) |
protected void |
rewriteFields(DTD.PI clone) |
protected void |
rewriteFields(DTD.Seq clone) |
protected void |
rewriteFields(DTD.Singleton clone) |
protected void |
rewriteFields(DTD.TextDecl clone) |
void |
substitute_empty() |
void |
substitute(Object p) |
protected void |
useCache(boolean x) |
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, nomatch
protected Object original
public Rewriter()
public Rewriter(DTD.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 DTD.ContentModel> T breakLoop(T e0)
protected <T extends DTD.NmToken> T breakLoop(T e0)
protected <T extends DTD.Dtd> T breakLoop(T e0)
protected <T extends DTD.MarkupDecl> T breakLoop(T e0)
protected <T extends DTD.AttDef> T breakLoop(T e0)
protected <T extends DTD.EntityValue> T breakLoop(T e0)
protected <T extends DTD.EntityContext> T breakLoop(T e0)
protected <T extends DTD.AttType> T breakLoop(T e0)
protected <T extends DTD.DefaultDecl> T breakLoop(T e0)
public Object getResult()
public <T> T rewrite_typed(T obj)
rewrite_typed
in interface Rewriter
protected void action(DTD.ContentModel e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.ContentModel clone)
protected void action(DTD.ContentModelConstant e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.ContentModelConstant clone)
protected void action(DTD.Empty e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.Empty clone)
protected void action(DTD.Any e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.Any clone)
protected void action(DTD.Mixed e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.Mixed clone)
protected void action(DTD.CP e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.CP clone)
protected void action(DTD.Singleton e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.Singleton clone)
protected void action(DTD.Seq e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.Seq clone)
protected void action(DTD.Choice e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.Choice clone)
protected void action(DTD.Abbrev e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.Abbrev clone)
protected void action(DTD.NmToken e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.NmToken clone)
protected void action(DTD.Dtd e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.Dtd clone)
protected void action(DTD.MarkupDecl e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.MarkupDecl clone)
protected void action(DTD.Attlist e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.Attlist clone)
protected void action(DTD.Comment e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.Comment clone)
protected void action(DTD.Element e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.Element clone)
protected void action(DTD.Entity e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.Entity clone)
protected void action(DTD.Notation e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.Notation clone)
protected void action(DTD.PI e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.PI clone)
protected void action(DTD.TextDecl e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.TextDecl clone)
protected void action(DTD.AttDef e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.AttDef clone)
protected void action(DTD.EntityValue e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.EntityValue clone)
protected void action(DTD.EntityContext e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.EntityContext clone)
protected void action(DTD.AttType e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.AttType clone)
protected void action(DTD.AttTypeConstant e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.AttTypeConstant clone)
protected void action(DTD.AttTypeAbbrev e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.AttTypeAbbrev clone)
protected void action(DTD.Enumerated e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.Enumerated clone)
protected void action(DTD.DefaultDecl e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.DefaultDecl clone)
protected void action(DTD.DefaultDeclConstant e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.DefaultDeclConstant clone)
protected void action(DTD.AttValue e0)
action
in class DTD.MATCH_ONLY_00
protected void rewriteFields(DTD.AttValue clone)
see also the complete user documentation .