tom.library.bytecode
Class CFGViewer.BuildLabelMap
java.lang.Object
tom.library.sl.AbstractStrategy
tom.library.sl.AbstractStrategyBasic
tom.library.bytecode.CFGViewer.BuildLabelMap
- All Implemented Interfaces:
- Strategy, Visitable
- Enclosing class:
- CFGViewer
public static class CFGViewer.BuildLabelMap
- extends AbstractStrategyBasic
| Methods inherited from class tom.library.sl.AbstractStrategy |
getAncestor, getEnvironment, getPosition, getRoot, getSubject, init, init, setEnvironment, setRoot, setSubject, visit, visit, visit, visit, visitLight |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CFGViewer.BuildLabelMap
public CFGViewer.BuildLabelMap(Map m)
getm
public Map getm()
getChildren
public Visitable[] getChildren()
- Description copied from interface:
Visitable
- Returns the list of (non builtin) Visitable children
- Specified by:
getChildren in interface Visitable- Overrides:
getChildren in class AbstractStrategyBasic
- Returns:
- an array of Visitable children
setChildren
public Visitable setChildren(Visitable[] children)
- Description copied from interface:
Visitable
- Replaces all children of any visitable at once, and returns this
visitable.
- Specified by:
setChildren in interface Visitable- Overrides:
setChildren in class AbstractStrategyBasic
- Parameters:
children - array of children to set up
- Returns:
- the current Visitable
getChildCount
public int getChildCount()
- Description copied from interface:
Visitable
- Returns the number of children of the current Visitable
- Specified by:
getChildCount in interface Visitable- Overrides:
getChildCount in class AbstractStrategyBasic
- Returns:
- the number of children
getChildAt
public Visitable getChildAt(int index)
- Description copied from interface:
Visitable
- Returns the child at the specified position
- Specified by:
getChildAt in interface Visitable- Overrides:
getChildAt in class AbstractStrategyBasic
- Parameters:
index - index of the element to return
- Returns:
- the child at the specified position in the list
setChildAt
public Visitable setChildAt(int index,
Visitable child)
- Description copied from interface:
Visitable
- Replaces a child at the specified position
- Specified by:
setChildAt in interface Visitable- Overrides:
setChildAt in class AbstractStrategyBasic
- Parameters:
index - index of the element to returnchild - element to set up
- Returns:
- the current Visitable
visitLight
public <T> T visitLight(T v,
Introspector introspector)
throws VisitFailure
- Description copied from interface:
Strategy
- Visit the subject any in a light way (without environment)
- Parameters:
v - the subject to visit.
- Throws:
VisitFailure - in case of failure.
_visit_InstructionList
public InstructionList _visit_InstructionList(InstructionList arg,
Introspector introspector)
throws VisitFailure
- Throws:
VisitFailure
visit_InstructionList
public InstructionList visit_InstructionList(InstructionList tom__arg,
Introspector introspector)
throws VisitFailure
- Throws:
VisitFailure