soot
Class AbstractUnitPrinter

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

public abstract class AbstractUnitPrinter
extends Object
implements UnitPrinter

Partial default UnitPrinter implementation.


Field Summary
protected  String indent
           
protected  StringBuffer output
           
protected  AttributesUnitPrinter pt
           
protected  HashSet<String> quotableLocals
           
protected  boolean startOfLine
           
 
Constructor Summary
AbstractUnitPrinter()
           
 
Method Summary
 void constant(Constant c)
           
 void decIndent()
           
 void endUnit(Unit u)
           
 void endUnitBox(UnitBox ub)
           
 void endValueBox(ValueBox vb)
           
abstract  void fieldRef(SootFieldRef f)
           
 String getIndent()
           
 AttributesUnitPrinter getPositionTagger()
           
protected  void handleIndent()
           
abstract  void identityRef(IdentityRef r)
           
 void incIndent()
           
protected  void initializeQuotableLocals()
           
abstract  void literal(String s)
           
 void local(Local l)
           
abstract  void methodRef(SootMethodRef m)
           
 void newline()
           
 void noIndent()
           
 StringBuffer output()
           
 void setIndent(String indent)
           
 void setPositionTagger(AttributesUnitPrinter pt)
           
 void startUnit(Unit u)
           
 void startUnitBox(UnitBox ub)
           
 void startValueBox(ValueBox vb)
           
 String toString()
           
abstract  void type(Type t)
           
abstract  void unitRef(Unit u, boolean branchTarget)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

startOfLine

protected boolean startOfLine

indent

protected String indent

output

protected StringBuffer output

pt

protected AttributesUnitPrinter pt

quotableLocals

protected HashSet<String> quotableLocals
Constructor Detail

AbstractUnitPrinter

public AbstractUnitPrinter()
Method Detail

setPositionTagger

public void setPositionTagger(AttributesUnitPrinter pt)
Specified by:
setPositionTagger in interface UnitPrinter

getPositionTagger

public AttributesUnitPrinter getPositionTagger()
Specified by:
getPositionTagger in interface UnitPrinter

startUnit

public void startUnit(Unit u)
Specified by:
startUnit in interface UnitPrinter

endUnit

public void endUnit(Unit u)
Specified by:
endUnit in interface UnitPrinter

startUnitBox

public void startUnitBox(UnitBox ub)
Specified by:
startUnitBox in interface UnitPrinter

endUnitBox

public void endUnitBox(UnitBox ub)
Specified by:
endUnitBox in interface UnitPrinter

startValueBox

public void startValueBox(ValueBox vb)
Specified by:
startValueBox in interface UnitPrinter

endValueBox

public void endValueBox(ValueBox vb)
Specified by:
endValueBox in interface UnitPrinter

noIndent

public void noIndent()
Specified by:
noIndent in interface UnitPrinter

incIndent

public void incIndent()
Specified by:
incIndent in interface UnitPrinter

decIndent

public void decIndent()
Specified by:
decIndent in interface UnitPrinter

setIndent

public void setIndent(String indent)
Specified by:
setIndent in interface UnitPrinter

getIndent

public String getIndent()
Specified by:
getIndent in interface UnitPrinter

literal

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

type

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

methodRef

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

fieldRef

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

identityRef

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

unitRef

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

newline

public void newline()
Specified by:
newline in interface UnitPrinter

local

public void local(Local l)
Specified by:
local in interface UnitPrinter

constant

public void constant(Constant c)
Specified by:
constant in interface UnitPrinter

toString

public String toString()
Overrides:
toString in class Object

output

public StringBuffer output()
Specified by:
output in interface UnitPrinter

handleIndent

protected void handleIndent()

initializeQuotableLocals

protected void initializeQuotableLocals()