soot
Class LabeledUnitPrinter

java.lang.Object
  extended by soot.AbstractUnitPrinter
      extended by soot.LabeledUnitPrinter
All Implemented Interfaces:
UnitPrinter
Direct Known Subclasses:
BriefUnitPrinter, NormalUnitPrinter

public abstract class LabeledUnitPrinter
extends AbstractUnitPrinter

UnitPrinter implementation for representations that have labelled stmts, such as Jimple, Grimp, and Baf


Field Summary
protected  String labelIndent
           
protected  Map labels
          branch targets
protected  Map<Unit,String> references
          for unit references in Phi nodes
 
Fields inherited from class soot.AbstractUnitPrinter
indent, output, pt, quotableLocals, startOfLine
 
Constructor Summary
LabeledUnitPrinter(Body b)
           
 
Method Summary
abstract  void fieldRef(SootFieldRef f)
           
abstract  void identityRef(IdentityRef r)
           
 Map labels()
           
abstract  void literal(String s)
           
abstract  void methodRef(SootMethodRef m)
           
 Map<Unit,String> references()
           
abstract  void type(Type t)
           
 void unitRef(Unit u, boolean branchTarget)
           
 
Methods inherited from class soot.AbstractUnitPrinter
constant, decIndent, endUnit, endUnitBox, endValueBox, getIndent, getPositionTagger, handleIndent, incIndent, initializeQuotableLocals, local, newline, noIndent, output, setIndent, setPositionTagger, startUnit, startUnitBox, startValueBox, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

labels

protected Map labels
branch targets


references

protected Map<Unit,String> references
for unit references in Phi nodes


labelIndent

protected String labelIndent
Constructor Detail

LabeledUnitPrinter

public LabeledUnitPrinter(Body b)
Method Detail

labels

public Map labels()

references

public Map<Unit,String> references()

literal

public abstract void literal(String s)
Specified by:
literal in interface UnitPrinter
Specified by:
literal in class AbstractUnitPrinter

methodRef

public abstract void methodRef(SootMethodRef m)
Specified by:
methodRef in interface UnitPrinter
Specified by:
methodRef in class AbstractUnitPrinter

fieldRef

public abstract void fieldRef(SootFieldRef f)
Specified by:
fieldRef in interface UnitPrinter
Specified by:
fieldRef in class AbstractUnitPrinter

identityRef

public abstract void identityRef(IdentityRef r)
Specified by:
identityRef in interface UnitPrinter
Specified by:
identityRef in class AbstractUnitPrinter

type

public abstract void type(Type t)
Specified by:
type in interface UnitPrinter
Specified by:
type in class AbstractUnitPrinter

unitRef

public void unitRef(Unit u,
                    boolean branchTarget)
Specified by:
unitRef in interface UnitPrinter
Specified by:
unitRef in class AbstractUnitPrinter