Package sootup.core.jimple.visitor
Class ReplaceUseExprVisitor
java.lang.Object
sootup.core.jimple.visitor.AbstractExprVisitor
sootup.core.jimple.visitor.ReplaceUseExprVisitor
- All Implemented Interfaces:
ExprVisitor
,Visitor
Replace old use of an expr with a new use
- Author:
- Zun Wang
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
caseAddExpr
(JAddExpr expr) void
caseAndExpr
(JAndExpr expr) void
caseCastExpr
(JCastExpr expr) void
caseCmpExpr
(JCmpExpr expr) void
caseCmpgExpr
(JCmpgExpr expr) void
caseCmplExpr
(JCmplExpr expr) void
caseDivExpr
(JDivExpr expr) void
void
caseEqExpr
(JEqExpr expr) void
caseGeExpr
(JGeExpr expr) void
caseGtExpr
(JGtExpr expr) void
void
void
caseLeExpr
(JLeExpr expr) void
caseLengthExpr
(JLengthExpr expr) void
caseLtExpr
(JLtExpr expr) void
caseMulExpr
(JMulExpr expr) void
caseNeExpr
(JNeExpr expr) void
caseNegExpr
(JNegExpr expr) void
void
caseNewExpr
(JNewExpr expr) void
void
caseOrExpr
(JOrExpr expr) void
void
caseRemExpr
(JRemExpr expr) void
caseShlExpr
(JShlExpr expr) void
caseShrExpr
(JShrExpr expr) void
void
void
caseSubExpr
(JSubExpr expr) void
caseUshrExpr
(JUshrExpr expr) void
void
caseXorExpr
(JXorExpr expr) void
defaultCaseExpr
(Expr expr) void
errorHandler
(Expr expr) void
protected void
-
Field Details
-
oldUse
-
newUse
-
result
-
-
Constructor Details
-
ReplaceUseExprVisitor
public ReplaceUseExprVisitor() -
ReplaceUseExprVisitor
-
-
Method Details
-
init
-
caseAddExpr
- Specified by:
caseAddExpr
in interfaceExprVisitor
- Overrides:
caseAddExpr
in classAbstractExprVisitor
-
caseAndExpr
- Specified by:
caseAndExpr
in interfaceExprVisitor
- Overrides:
caseAndExpr
in classAbstractExprVisitor
-
caseCmpExpr
- Specified by:
caseCmpExpr
in interfaceExprVisitor
- Overrides:
caseCmpExpr
in classAbstractExprVisitor
-
caseCmpgExpr
- Specified by:
caseCmpgExpr
in interfaceExprVisitor
- Overrides:
caseCmpgExpr
in classAbstractExprVisitor
-
caseCmplExpr
- Specified by:
caseCmplExpr
in interfaceExprVisitor
- Overrides:
caseCmplExpr
in classAbstractExprVisitor
-
caseDivExpr
- Specified by:
caseDivExpr
in interfaceExprVisitor
- Overrides:
caseDivExpr
in classAbstractExprVisitor
-
caseEqExpr
- Specified by:
caseEqExpr
in interfaceExprVisitor
- Overrides:
caseEqExpr
in classAbstractExprVisitor
-
caseNeExpr
- Specified by:
caseNeExpr
in interfaceExprVisitor
- Overrides:
caseNeExpr
in classAbstractExprVisitor
-
caseGeExpr
- Specified by:
caseGeExpr
in interfaceExprVisitor
- Overrides:
caseGeExpr
in classAbstractExprVisitor
-
caseGtExpr
- Specified by:
caseGtExpr
in interfaceExprVisitor
- Overrides:
caseGtExpr
in classAbstractExprVisitor
-
caseLeExpr
- Specified by:
caseLeExpr
in interfaceExprVisitor
- Overrides:
caseLeExpr
in classAbstractExprVisitor
-
caseLtExpr
- Specified by:
caseLtExpr
in interfaceExprVisitor
- Overrides:
caseLtExpr
in classAbstractExprVisitor
-
caseMulExpr
- Specified by:
caseMulExpr
in interfaceExprVisitor
- Overrides:
caseMulExpr
in classAbstractExprVisitor
-
caseOrExpr
- Specified by:
caseOrExpr
in interfaceExprVisitor
- Overrides:
caseOrExpr
in classAbstractExprVisitor
-
caseRemExpr
- Specified by:
caseRemExpr
in interfaceExprVisitor
- Overrides:
caseRemExpr
in classAbstractExprVisitor
-
caseShlExpr
- Specified by:
caseShlExpr
in interfaceExprVisitor
- Overrides:
caseShlExpr
in classAbstractExprVisitor
-
caseShrExpr
- Specified by:
caseShrExpr
in interfaceExprVisitor
- Overrides:
caseShrExpr
in classAbstractExprVisitor
-
caseUshrExpr
- Specified by:
caseUshrExpr
in interfaceExprVisitor
- Overrides:
caseUshrExpr
in classAbstractExprVisitor
-
caseSubExpr
- Specified by:
caseSubExpr
in interfaceExprVisitor
- Overrides:
caseSubExpr
in classAbstractExprVisitor
-
caseXorExpr
- Specified by:
caseXorExpr
in interfaceExprVisitor
- Overrides:
caseXorExpr
in classAbstractExprVisitor
-
caseStaticInvokeExpr
- Specified by:
caseStaticInvokeExpr
in interfaceExprVisitor
- Overrides:
caseStaticInvokeExpr
in classAbstractExprVisitor
-
caseDynamicInvokeExpr
- Specified by:
caseDynamicInvokeExpr
in interfaceExprVisitor
- Overrides:
caseDynamicInvokeExpr
in classAbstractExprVisitor
-
caseNewMultiArrayExpr
- Specified by:
caseNewMultiArrayExpr
in interfaceExprVisitor
- Overrides:
caseNewMultiArrayExpr
in classAbstractExprVisitor
-
caseSpecialInvokeExpr
- Specified by:
caseSpecialInvokeExpr
in interfaceExprVisitor
- Overrides:
caseSpecialInvokeExpr
in classAbstractExprVisitor
-
caseVirtualInvokeExpr
- Specified by:
caseVirtualInvokeExpr
in interfaceExprVisitor
- Overrides:
caseVirtualInvokeExpr
in classAbstractExprVisitor
-
caseInterfaceInvokeExpr
- Specified by:
caseInterfaceInvokeExpr
in interfaceExprVisitor
- Overrides:
caseInterfaceInvokeExpr
in classAbstractExprVisitor
-
caseCastExpr
- Specified by:
caseCastExpr
in interfaceExprVisitor
- Overrides:
caseCastExpr
in classAbstractExprVisitor
-
caseInstanceOfExpr
- Specified by:
caseInstanceOfExpr
in interfaceExprVisitor
- Overrides:
caseInstanceOfExpr
in classAbstractExprVisitor
-
caseNewArrayExpr
- Specified by:
caseNewArrayExpr
in interfaceExprVisitor
- Overrides:
caseNewArrayExpr
in classAbstractExprVisitor
-
caseLengthExpr
- Specified by:
caseLengthExpr
in interfaceExprVisitor
- Overrides:
caseLengthExpr
in classAbstractExprVisitor
-
caseNegExpr
- Specified by:
caseNegExpr
in interfaceExprVisitor
- Overrides:
caseNegExpr
in classAbstractExprVisitor
-
casePhiExpr
- Specified by:
casePhiExpr
in interfaceExprVisitor
- Overrides:
casePhiExpr
in classAbstractExprVisitor
-
caseNewExpr
- Specified by:
caseNewExpr
in interfaceExprVisitor
- Overrides:
caseNewExpr
in classAbstractExprVisitor
-
defaultCaseExpr
- Specified by:
defaultCaseExpr
in interfaceExprVisitor
- Overrides:
defaultCaseExpr
in classAbstractExprVisitor
-
errorHandler
-
getResult
-
setResult
-