Represents an integer division expression of the form " e1 / e2 " where e1 and e2 are the operand expressions . @author David J. Pearce
| 3876 | * |
| 3877 | */ |
| 3878 | public static class IntegerDivision extends AbstractExpr implements BinaryOperator { |
| 3879 | public IntegerDivision(Type type, Expr lhs, Expr rhs) { |
| 3880 | super(EXPR_integerdivision, type, lhs, rhs); |
| 3881 | } |
| 3882 | |
| 3883 | @Override |
| 3884 | public Expr getFirstOperand() { |
| 3885 | return (Expr) super.get(1); |
| 3886 | } |
| 3887 | |
| 3888 | @Override |
| 3889 | public Expr getSecondOperand() { |
| 3890 | return (Expr) super.get(2); |
| 3891 | } |
| 3892 | |
| 3893 | @Override |
| 3894 | public Expr clone(Syntactic.Item[] operands) { |
| 3895 | return new IntegerDivision((Type) operands[0], (Expr) operands[1], (Expr) operands[2]); |
| 3896 | } |
| 3897 | |
| 3898 | @Override |
| 3899 | public String toString() { |
| 3900 | return " / "; |
| 3901 | } |
| 3902 | |
| 3903 | public static final Descriptor DESCRIPTOR_0 = new Descriptor(Operands.THREE, Data.ZERO, "EXPR_integerdivision") { |
| 3904 | @Override |
| 3905 | public Syntactic.Item construct(int opcode, Syntactic.Item[] operands, byte[] data) { |
| 3906 | return new IntegerDivision((Type) operands[0], (Expr) operands[1], (Expr) operands[2]); |
| 3907 | } |
| 3908 | }; |
| 3909 | } |
| 3910 | |
| 3911 | /** |
| 3912 | * Represents an integer <i>remainder expression</i> of the form |
nothing calls this directly
no outgoing calls
no test coverage detected