MCPcopy Create free account
hub / github.com/GraxCode/zelixkiller / floatValue

Method floatValue

src/me/lpk/analysis/InsnValue.java:141–151  ·  view source on GitHub ↗
(int opcode)

Source from the content-addressed store, hash-verified

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);

Callers 8

createConstantMethod · 0.95
loadFromArrayMethod · 0.95
doMathMethod · 0.95
incrementLocalMethod · 0.95
convertValueMethod · 0.95
invertValueMethod · 0.95
getUnaryValueMethod · 0.80
getBinaryValueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected