Search in sources :

Example 26 with BinopExpr

use of soot.jimple.BinopExpr in project soot by Sable.

the class Walker method outABinopExpr.

/*
	 * binop_expr = [left]:immediate binop [right]:immediate;
	 */
public void outABinopExpr(ABinopExpr node) {
    Value right = (Value) mProductions.removeLast();
    BinopExpr expr = (BinopExpr) mProductions.removeLast();
    Value left = (Value) mProductions.removeLast();
    expr.setOp1(left);
    expr.setOp2(right);
    mProductions.addLast(expr);
}
Also used : Value(soot.Value) BinopExpr(soot.jimple.BinopExpr)

Aggregations

BinopExpr (soot.jimple.BinopExpr)26 Value (soot.Value)21 Local (soot.Local)19 ArrayRef (soot.jimple.ArrayRef)12 CastExpr (soot.jimple.CastExpr)11 NewArrayExpr (soot.jimple.NewArrayExpr)11 NullConstant (soot.jimple.NullConstant)11 Type (soot.Type)10 InstanceFieldRef (soot.jimple.InstanceFieldRef)10 IntConstant (soot.jimple.IntConstant)10 InvokeExpr (soot.jimple.InvokeExpr)10 LengthExpr (soot.jimple.LengthExpr)9 IfStmt (soot.jimple.IfStmt)8 LongConstant (soot.jimple.LongConstant)8 StringConstant (soot.jimple.StringConstant)8 Unit (soot.Unit)7 AssignStmt (soot.jimple.AssignStmt)7 FieldRef (soot.jimple.FieldRef)7 NewExpr (soot.jimple.NewExpr)7 NewMultiArrayExpr (soot.jimple.NewMultiArrayExpr)7