Package sootup.core.util.printer
Class AbstractStmtPrinter
java.lang.Object
sootup.core.util.printer.StmtPrinter
sootup.core.util.printer.AbstractStmtPrinter
- Direct Known Subclasses:
LabeledStmtPrinter
Partial default StmtPrinter implementation.
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected final char
protected final int
protected StringBuilder
protected boolean
Fields inherited from class sootup.core.util.printer.StmtPrinter
graph
-
Constructor Summary
-
Method Summary
Methods inherited from class sootup.core.util.printer.StmtPrinter
field, fieldSignature, getGraph, identityRef, literal, method, methodSignature, stmtRef
-
Field Details
-
startOfLine
protected boolean startOfLine -
indentChar
protected final char indentChar- See Also:
-
indentStep
protected final int indentStep- See Also:
-
indent
protected int indent -
output
-
-
Constructor Details
-
AbstractStmtPrinter
public AbstractStmtPrinter()
-
-
Method Details
-
addImport
* addImport keeps track of imported Packages/Classes- Returns:
- whether this ClassName does not collide with another ClassName from a different package that was already added
-
getImports
-
stmt
-
startStmt
- Specified by:
startStmt
in classStmtPrinter
-
endStmt
- Specified by:
endStmt
in classStmtPrinter
-
noIndent
public void noIndent()- Specified by:
noIndent
in classStmtPrinter
-
setIndent
public void setIndent(int offset) - Specified by:
setIndent
in classStmtPrinter
-
incIndent
public void incIndent()- Specified by:
incIndent
in classStmtPrinter
-
decIndent
public void decIndent()- Specified by:
decIndent
in classStmtPrinter
-
modifier
- Specified by:
modifier
in classStmtPrinter
-
typeSignature
- Specified by:
typeSignature
in classStmtPrinter
-
newline
public void newline()- Specified by:
newline
in classStmtPrinter
-
local
- Specified by:
local
in classStmtPrinter
-
constant
- Specified by:
constant
in classStmtPrinter
-
handleIndent
public void handleIndent()- Specified by:
handleIndent
in classStmtPrinter
-
toString
-