soot
Class AbstractUnitPrinter

java.lang.Object
  |
  +--soot.AbstractUnitPrinter
Direct Known Subclasses:
DavaUnitPrinter, LabeledUnitPrinter

public abstract class AbstractUnitPrinter
extends java.lang.Object
implements UnitPrinter

Partial default UnitPrinter implementation.


Field Summary
protected  java.lang.String indent
           
protected  java.lang.StringBuffer output
           
protected  AttributesUnitPrinter pt
           
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(SootField f)
           
 java.lang.String getIndent()
           
 AttributesUnitPrinter getPositionTagger()
           
protected  void handleIndent()
           
abstract  void identityRef(IdentityRef r)
           
 void incIndent()
           
abstract  void literal(java.lang.String s)
           
 void local(Local l)
           
abstract  void method(SootMethod m)
           
 void newline()
           
 void noIndent()
           
 java.lang.StringBuffer output()
           
 void setIndent(java.lang.String indent)
           
 void setPositionTagger(AttributesUnitPrinter pt)
           
 void startUnit(Unit u)
           
 void startUnitBox(UnitBox ub)
           
 void startValueBox(ValueBox vb)
           
 java.lang.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 java.lang.String indent

output

protected java.lang.StringBuffer output

pt

protected AttributesUnitPrinter pt
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(java.lang.String indent)
Specified by:
setIndent in interface UnitPrinter

getIndent

public java.lang.String getIndent()
Specified by:
getIndent in interface UnitPrinter

literal

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

type

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

method

public abstract void method(SootMethod m)
Specified by:
method in interface UnitPrinter

fieldRef

public abstract void fieldRef(SootField 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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

output

public java.lang.StringBuffer output()
Specified by:
output in interface UnitPrinter

handleIndent

protected void handleIndent()