eu.bandm.tscore.model
Class Rewrite

java.lang.Object
  extended by eu.bandm.tscore.model.MATCH_ONLY_00
      extended by eu.bandm.tscore.model.Rewrite
All Implemented Interfaces:
Rewriter

public class Rewrite
extends MATCH_ONLY_00
implements Rewriter


Field Summary
protected  HashMap<Object,Object> cache
           
protected  HashSet<Object> mcache
           
protected  Object original
           
 
Fields inherited from class eu.bandm.tscore.model.MATCH_ONLY_00
_visitor_debug_stream, partial
 
Constructor Summary
Rewrite()
           
Rewrite(Rewrite parent)
           
 
Method Summary
protected  void action(Application e0)
           
protected  void action(Const e0)
           
protected  void action(Event e0)
           
protected  void action(EventSet e0)
           
protected  void action(Expression e0)
           
protected  void action(Param e0)
           
protected  void action(Part e0)
           
protected  void action(TDivision e0)
           
protected  void action(TimeScape e0)
           
protected  void action(Tp e0)
           
protected  void action(TpSub e0)
           
protected  void action(TpTop e0)
           
protected  void action(Vox e0)
           
protected
<T extends Event>
T
breakLoop(T e0)
           
protected
<T extends EventSet>
T
breakLoop(T e0)
           
protected
<T extends Expression>
T
breakLoop(T e0)
           
protected
<T extends Param>
T
breakLoop(T e0)
           
protected
<T extends Part>
T
breakLoop(T e0)
           
protected
<T extends TDivision>
T
breakLoop(T e0)
           
protected
<T extends TimeScape>
T
breakLoop(T e0)
           
protected
<T extends Tp>
T
breakLoop(T e0)
           
protected
<T extends Vox>
T
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(Application clone)
           
protected  void rewriteFields(Const clone)
           
protected  void rewriteFields(Event clone)
           
protected  void rewriteFields(EventSet clone)
           
protected  void rewriteFields(Expression clone)
           
protected  void rewriteFields(Param clone)
           
protected  void rewriteFields(Part clone)
           
protected  void rewriteFields(TDivision clone)
           
protected  void rewriteFields(TimeScape clone)
           
protected  void rewriteFields(Tp clone)
           
protected  void rewriteFields(TpSub clone)
           
protected  void rewriteFields(TpTop clone)
           
protected  void rewriteFields(Vox clone)
           
 void substitute_empty()
           
 void substitute(Object p)
           
protected  void useCache(boolean x)
           
 
Methods inherited from class eu.bandm.tscore.model.MATCH_ONLY_00
_visitor_trace, action, action, action, action, action, foreignObject, match, match, match, match, match, match, match, match, match, match, nomatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mcache

protected HashSet<Object> mcache

original

protected Object original

cache

protected HashMap<Object,Object> cache
Constructor Detail

Rewrite

public Rewrite()

Rewrite

public Rewrite(Rewrite parent)
Method Detail

useCache

protected void useCache(boolean x)

lookUp

protected boolean lookUp(Object x)

putToCache

protected void putToCache()

isMulti

public boolean isMulti()

revert

public void revert()

substitute

public void substitute(Object p)

substitute_empty

public void substitute_empty()

breakLoop

protected <T extends EventSet> T breakLoop(T e0)

breakLoop

protected <T extends Tp> T breakLoop(T e0)

breakLoop

protected <T extends Vox> T breakLoop(T e0)

breakLoop

protected <T extends Param> T breakLoop(T e0)

breakLoop

protected <T extends TDivision> T breakLoop(T e0)

breakLoop

protected <T extends Event> T breakLoop(T e0)

breakLoop

protected <T extends TimeScape> T breakLoop(T e0)

breakLoop

protected <T extends Expression> T breakLoop(T e0)

breakLoop

protected <T extends Part> T breakLoop(T e0)

getResult

public Object getResult()

rewrite

public Object rewrite(Object obj)
Specified by:
rewrite in interface Rewriter

rewrite_typed

public <T> T rewrite_typed(T obj)
Specified by:
rewrite_typed in interface Rewriter

action

protected void action(EventSet e0)
Overrides:
action in class MATCH_ONLY_00

rewriteFields

protected void rewriteFields(EventSet clone)

action

protected void action(Tp e0)
Overrides:
action in class MATCH_ONLY_00

rewriteFields

protected void rewriteFields(Tp clone)

action

protected void action(TpTop e0)
Overrides:
action in class MATCH_ONLY_00

rewriteFields

protected void rewriteFields(TpTop clone)

action

protected void action(TpSub e0)
Overrides:
action in class MATCH_ONLY_00

rewriteFields

protected void rewriteFields(TpSub clone)

action

protected void action(Vox e0)
Overrides:
action in class MATCH_ONLY_00

rewriteFields

protected void rewriteFields(Vox clone)

action

protected void action(Param e0)

rewriteFields

protected void rewriteFields(Param clone)

action

protected void action(TDivision e0)
Overrides:
action in class MATCH_ONLY_00

rewriteFields

protected void rewriteFields(TDivision clone)

action

protected void action(Event e0)
Overrides:
action in class MATCH_ONLY_00

rewriteFields

protected void rewriteFields(Event clone)

action

protected void action(TimeScape e0)
Overrides:
action in class MATCH_ONLY_00

rewriteFields

protected void rewriteFields(TimeScape clone)

action

protected void action(Expression e0)

rewriteFields

protected void rewriteFields(Expression clone)

action

protected void action(Application e0)

rewriteFields

protected void rewriteFields(Application clone)

action

protected void action(Const e0)

rewriteFields

protected void rewriteFields(Const clone)

action

protected void action(Part e0)
Overrides:
action in class MATCH_ONLY_00

rewriteFields

protected void rewriteFields(Part clone)