tom.library.bytecode
Class CFGViewer.PrintDotNode

java.lang.Object
  extended by tom.library.sl.AbstractStrategy
      extended by tom.library.sl.AbstractStrategyBasic
          extended by tom.library.bytecode.CFGViewer.PrintDotNode
All Implemented Interfaces:
Strategy, Visitable
Enclosing class:
CFGViewer

public static class CFGViewer.PrintDotNode
extends AbstractStrategyBasic

Prints the current instruction node with a suitable label.


Field Summary
 
Fields inherited from class tom.library.sl.AbstractStrategyBasic
any
 
Fields inherited from class tom.library.sl.AbstractStrategy
environment
 
Constructor Summary
CFGViewer.PrintDotNode(Writer out)
           
 
Method Summary
 InstructionList _visit_InstructionList(InstructionList arg, Introspector introspector)
           
 Visitable getChildAt(int index)
          Returns the child at the specified position
 int getChildCount()
          Returns the number of children of the current Visitable
 Visitable[] getChildren()
          Returns the list of (non builtin) Visitable children
 Writer getout()
           
 Visitable setChildAt(int index, Visitable child)
          Replaces a child at the specified position
 Visitable setChildren(Visitable[] children)
          Replaces all children of any visitable at once, and returns this visitable.
 InstructionList visit_InstructionList(InstructionList tom__arg, Introspector introspector)
           
<T> T
visitLight(T v, Introspector introspector)
          Visit the subject any in a light way (without environment)
 
Methods inherited from class tom.library.sl.AbstractStrategyBasic
visit
 
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
 

Constructor Detail

CFGViewer.PrintDotNode

public CFGViewer.PrintDotNode(Writer out)
Method Detail

getout

public Writer getout()

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 return
child - 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