Package sootup.core.jimple.visitor
Class ReplaceUseRefVisitor
java.lang.Object
sootup.core.jimple.visitor.AbstractRefVisitor
sootup.core.jimple.visitor.ReplaceUseRefVisitor
- All Implemented Interfaces:
RefVisitor
,Visitor
Replace old use of a Ref with a new use
- Author:
- Zun Wang
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
caseArrayRef
(JArrayRef ref) void
void
defaultCaseRef
(Ref ref) void
protected void
Methods inherited from class sootup.core.jimple.visitor.AbstractRefVisitor
caseCaughtExceptionRef, caseParameterRef, caseStaticFieldRef, caseThisRef
-
Field Details
-
oldUse
-
newUse
-
result
-
-
Constructor Details
-
ReplaceUseRefVisitor
public ReplaceUseRefVisitor()
-
-
Method Details
-
init
-
caseInstanceFieldRef
- Specified by:
caseInstanceFieldRef
in interfaceRefVisitor
- Overrides:
caseInstanceFieldRef
in classAbstractRefVisitor
-
caseArrayRef
- Specified by:
caseArrayRef
in interfaceRefVisitor
- Overrides:
caseArrayRef
in classAbstractRefVisitor
-
defaultCaseRef
- Specified by:
defaultCaseRef
in interfaceRefVisitor
- Overrides:
defaultCaseRef
in classAbstractRefVisitor
-
getResult
-
setResult
-