public class TypeResolver.CastInsertionUseVisitor extends Object implements IUseVisitor
| Modifier and Type | Field and Description |
|---|---|
protected IHierarchy |
h |
protected JimpleBody |
jb |
protected Typing |
tg |
| Constructor and Description |
|---|
CastInsertionUseVisitor(boolean countOnly,
JimpleBody jb,
Typing tg,
IHierarchy h) |
| Modifier and Type | Method and Description |
|---|---|
protected Local |
createCast(Type useType,
Stmt stmt,
Local old,
boolean after)
Creates a cast at stmt of vold to the given type.
|
boolean |
finish() |
int |
getCount() |
Value |
visit(Value op,
Type useType,
Stmt stmt,
boolean checkOnly) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitprotected JimpleBody jb
protected Typing tg
protected IHierarchy h
public CastInsertionUseVisitor(boolean countOnly,
JimpleBody jb,
Typing tg,
IHierarchy h)
public Value visit(Value op, Type useType, Stmt stmt, boolean checkOnly)
visit in interface IUseVisitorprotected Local createCast(Type useType, Stmt stmt, Local old, boolean after)
useType - the new typestmt - stmtold - the old localafter - True to insert the cast after the statement, false to insert it beforepublic int getCount()
public boolean finish()
finish in interface IUseVisitorCopyright © 2024 Soot OSS. All rights reserved.