ThrowingCstInsnpublic final class ThrowingCstInsn extends CstInsn Instruction which contains an explicit reference to a constant
and which might throw an exception. |
Fields Summary |
---|
private final com.android.dx.rop.type.TypeList | catches{@code non-null;} list of exceptions caught |
Methods Summary |
---|
public void | accept(Visitor visitor){@inheritDoc}
visitor.visitThrowingCstInsn(this);
| public com.android.dx.rop.type.TypeList | getCatches(){@inheritDoc}
return catches;
| public java.lang.String | getInlineString(){@inheritDoc}
Constant cst = getConstant();
String constantString = cst.toHuman();
if (cst instanceof CstString) {
constantString = ((CstString) cst).toQuoted();
}
return constantString + " " + ThrowingInsn.toCatchString(catches);
| public Insn | withAddedCatch(com.android.dx.rop.type.Type type){@inheritDoc}
return new ThrowingCstInsn(getOpcode(), getPosition(),
getSources(), catches.withAddedType(type),
getConstant());
| public Insn | withNewRegisters(RegisterSpec result, RegisterSpecList sources){@inheritDoc}
return new ThrowingCstInsn(getOpcode(), getPosition(),
sources,
catches,
getConstant());
| public Insn | withRegisterOffset(int delta){@inheritDoc}
return new ThrowingCstInsn(getOpcode(), getPosition(),
getSources().withOffset(delta),
catches,
getConstant());
|
|