soot
Class AbstractUnitPrinter
java.lang.Object
soot.AbstractUnitPrinter
- All Implemented Interfaces:
- UnitPrinter
- Direct Known Subclasses:
- DavaUnitPrinter, LabeledUnitPrinter
- public abstract class AbstractUnitPrinter
- extends Object
- implements UnitPrinter
Partial default UnitPrinter implementation.
startOfLine
protected boolean startOfLine
indent
protected String indent
output
protected StringBuffer output
pt
protected AttributesUnitPrinter pt
quotableLocals
protected HashSet quotableLocals
AbstractUnitPrinter
public AbstractUnitPrinter()
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()
output
public StringBuffer output()
- Specified by:
output
in interface UnitPrinter
handleIndent
protected void handleIndent()
initializeQuotableLocals
protected void initializeQuotableLocals()