public class ConstantVisitor extends AbstractConstantSwitch
Switchable.apply(soot.util.Switch) with this visitor to add statements. These are added to the instructions in
the StmtVisitor.setDestination(Register) to set the storage location for the constant.StmtVisitor| Constructor and Description |
|---|
ConstantVisitor(StmtVisitor stmtV) |
| Modifier and Type | Method and Description |
|---|---|
void |
caseClassConstant(ClassConstant c) |
void |
caseDoubleConstant(DoubleConstant d) |
void |
caseFloatConstant(FloatConstant f) |
void |
caseIntConstant(IntConstant i) |
void |
caseLongConstant(LongConstant l) |
void |
caseNullConstant(NullConstant v) |
void |
caseStringConstant(StringConstant s) |
void |
defaultCase(Object o) |
void |
setDestination(Register destinationReg) |
void |
setOrigStmt(Stmt stmt) |
caseMethodHandle, caseMethodType, getResult, setResultpublic ConstantVisitor(StmtVisitor stmtV)
public void setDestination(Register destinationReg)
public void setOrigStmt(Stmt stmt)
public void defaultCase(Object o)
defaultCase in interface ConstantSwitchdefaultCase in class AbstractConstantSwitchpublic void caseStringConstant(StringConstant s)
caseStringConstant in interface ConstantSwitchcaseStringConstant in class AbstractConstantSwitchpublic void caseClassConstant(ClassConstant c)
caseClassConstant in interface ConstantSwitchcaseClassConstant in class AbstractConstantSwitchpublic void caseLongConstant(LongConstant l)
caseLongConstant in interface ConstantSwitchcaseLongConstant in class AbstractConstantSwitchpublic void caseDoubleConstant(DoubleConstant d)
caseDoubleConstant in interface ConstantSwitchcaseDoubleConstant in class AbstractConstantSwitchpublic void caseFloatConstant(FloatConstant f)
caseFloatConstant in interface ConstantSwitchcaseFloatConstant in class AbstractConstantSwitchpublic void caseIntConstant(IntConstant i)
caseIntConstant in interface ConstantSwitchcaseIntConstant in class AbstractConstantSwitchpublic void caseNullConstant(NullConstant v)
caseNullConstant in interface ConstantSwitchcaseNullConstant in class AbstractConstantSwitchCopyright © 2020 Soot OSS. All rights reserved.