(int opcode)
| 139 | } |
| 140 | |
| 141 | public static InsnValue floatValue(int opcode) { |
| 142 | switch (opcode) { |
| 143 | case Opcodes.FCONST_0: |
| 144 | return new InsnValue(Type.FLOAT_TYPE, 0.0f); |
| 145 | case Opcodes.FCONST_1: |
| 146 | return new InsnValue(Type.FLOAT_TYPE, 1.0f); |
| 147 | case Opcodes.FCONST_2: |
| 148 | return new InsnValue(Type.FLOAT_TYPE, 2.0f); |
| 149 | } |
| 150 | return InsnValue.FLOAT_VALUE; |
| 151 | } |
| 152 | |
| 153 | public static InsnValue intValue(Object cst) { |
| 154 | return new InsnValue(Type.INT_TYPE, cst); |
no outgoing calls
no test coverage detected