Class TypeChecker
java.lang.Object
sootup.core.jimple.visitor.AbstractStmtVisitor
sootup.interceptors.typeresolving.TypeChecker
- All Implemented Interfaces:
StmtVisitor
,Visitor
- Direct Known Subclasses:
CastCounter
,TypePromotionVisitor
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Body.BodyBuilder
protected final MutableStmtGraph
protected Stmt
-
Constructor Summary
ConstructorDescriptionTypeChecker
(Body.BodyBuilder builder, AugEvalFunction evalFunction, BytecodeHierarchy hierarchy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
caseAssignStmt
(JAssignStmt stmt) void
void
void
caseIfStmt
(JIfStmt stmt) void
caseInvokeStmt
(JInvokeStmt stmt) void
caseReturnStmt
(JReturnStmt stmt) void
caseSwitchStmt
(JSwitchStmt stmt) void
caseThrowStmt
(JThrowStmt stmt) selectArrayType
(Type preType, Type newType, Stmt stmt) protected void
void
abstract void
Methods inherited from class sootup.core.jimple.visitor.AbstractStmtVisitor
caseBreakpointStmt, caseGotoStmt, caseIdentityStmt, caseNopStmt, caseRetStmt, caseReturnVoidStmt, defaultCaseStmt
-
Field Details
-
result
-
builder
-
graph
-
-
Constructor Details
-
TypeChecker
public TypeChecker(@Nonnull Body.BodyBuilder builder, @Nonnull AugEvalFunction evalFunction, @Nonnull BytecodeHierarchy hierarchy)
-
-
Method Details
-
visit
-
caseInvokeStmt
- Specified by:
caseInvokeStmt
in interfaceStmtVisitor
- Overrides:
caseInvokeStmt
in classAbstractStmtVisitor
-
caseAssignStmt
- Specified by:
caseAssignStmt
in interfaceStmtVisitor
- Overrides:
caseAssignStmt
in classAbstractStmtVisitor
-
caseEnterMonitorStmt
- Specified by:
caseEnterMonitorStmt
in interfaceStmtVisitor
- Overrides:
caseEnterMonitorStmt
in classAbstractStmtVisitor
-
caseExitMonitorStmt
- Specified by:
caseExitMonitorStmt
in interfaceStmtVisitor
- Overrides:
caseExitMonitorStmt
in classAbstractStmtVisitor
-
caseIfStmt
- Specified by:
caseIfStmt
in interfaceStmtVisitor
- Overrides:
caseIfStmt
in classAbstractStmtVisitor
-
caseSwitchStmt
- Specified by:
caseSwitchStmt
in interfaceStmtVisitor
- Overrides:
caseSwitchStmt
in classAbstractStmtVisitor
-
caseReturnStmt
- Specified by:
caseReturnStmt
in interfaceStmtVisitor
- Overrides:
caseReturnStmt
in classAbstractStmtVisitor
-
caseThrowStmt
- Specified by:
caseThrowStmt
in interfaceStmtVisitor
- Overrides:
caseThrowStmt
in classAbstractStmtVisitor
-
getFuntion
-
getHierarchy
-
getTyping
-
setTyping
-
selectArrayType
-
getResult
-
setResult
-