public Object clone() { return new JAssignStmt(Jimple.cloneIfNecessary(getLeftOp()), Jimple.cloneIfNecessary(getRightOp())); }
@Override public ValueBox getArrayRefBox() { if (!containsArrayRef()) { throw new RuntimeException("getArrayRefBox() called with no ArrayRef present!"); } if (leftBox.getValue() instanceof ArrayRef) { return leftBox; } else { return rightBox; } }
public ValueBox getFieldRefBox() { if (!containsFieldRef()) { throw new RuntimeException("getFieldRefBox() called with no FieldRef present!"); } if (leftBox.getValue() instanceof FieldRef) { return leftBox; } else { return rightBox; } }
@Override public boolean containsArrayRef() { return ((getLeftOp() instanceof ArrayRef) || (getRightOp() instanceof ArrayRef)); }
/** * Constructs a AssignStmt(Variable, RValue) grammar chunk. */ public AssignStmt newAssignStmt(Value variable, Value rvalue) { return new JAssignStmt(variable, rvalue); }
@Override public ValueBox getInvokeExprBox() { if (!containsInvokeExpr()) { throw new RuntimeException("getInvokeExpr() called with no invokeExpr present!"); } return rightBox; }
@Override public boolean containsInvokeExpr() { return getRightOp() instanceof InvokeExpr; }
@Override public void setLeftOp(Value variable) { getLeftOpBox().setValue(variable); }
@Override public boolean containsFieldRef() { return ((getLeftOp() instanceof FieldRef) || (getRightOp() instanceof FieldRef)); }
Local newArrL = new JimpleLocal("$u" + (b.getLocalCount() + 1), ArrayType.v(rf, 1)); b.getLocals().add(newArrL); JAssignStmt newArr = new JAssignStmt(newArrL, new JNewArrayExpr(rf, IntConstant.v(parms.size()))); units.add(newArr); units.add(new JAssignStmt(new JArrayRef(newArrL, IntConstant.v(i)), l)); i++;
@Override public InvokeExpr getInvokeExpr() { if (!containsInvokeExpr()) { throw new RuntimeException("getInvokeExpr() called with no invokeExpr present!"); } return (InvokeExpr) rightBox.getValue(); }
public Object clone() { return new JAssignStmt(Jimple.cloneIfNecessary(getLeftOp()), Jimple.cloneIfNecessary(getRightOp())); }
public void convertToBaf(final JimpleToBafContext context, final List<Unit> out) { final Value lvalue = this.getLeftOp(); final Value rvalue = this.getRightOp();
/** Constructs a AssignStmt(Variable, RValue) grammar chunk. */ public AssignStmt newAssignStmt(Value variable, Value rvalue) { return new JAssignStmt(variable, rvalue); }
public ValueBox getInvokeExprBox() { if (!containsInvokeExpr()) throw new RuntimeException("getInvokeExpr() called with no invokeExpr present!"); return rightBox; }
@Override public ArrayRef getArrayRef() { if (!containsArrayRef()) { throw new RuntimeException("getArrayRef() called with no ArrayRef present!"); } if (leftBox.getValue() instanceof ArrayRef) { return (ArrayRef) leftBox.getValue(); } else { return (ArrayRef) rightBox.getValue(); } }
public FieldRef getFieldRef() { if (!containsFieldRef()) { throw new RuntimeException("getFieldRef() called with no FieldRef present!"); } if (leftBox.getValue() instanceof FieldRef) { return (FieldRef) leftBox.getValue(); } else { return (FieldRef) rightBox.getValue(); } }
public Object clone() { return new JAssignStmt(Jimple.cloneIfNecessary(getLeftOp()), Jimple.cloneIfNecessary(getRightOp())); }
/** Constructs a AssignStmt(Variable, RValue) grammar chunk. */ public AssignStmt newAssignStmt(Value variable, Value rvalue) { return new JAssignStmt(variable, rvalue); }
public ValueBox getInvokeExprBox() { if (!containsInvokeExpr()) throw new RuntimeException("getInvokeExpr() called with no invokeExpr present!"); return rightBox; }