Java Code Examples for com.sun.org.apache.bcel.internal.Constants#D2F
The following examples show how to use
com.sun.org.apache.bcel.internal.Constants#D2F .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConversionInstruction.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
/** @return type associated with the instruction */ public Type getType(ConstantPoolGen cp) { switch(opcode) { case Constants.D2I: case Constants.F2I: case Constants.L2I: return Type.INT; case Constants.D2F: case Constants.I2F: case Constants.L2F: return Type.FLOAT; case Constants.D2L: case Constants.F2L: case Constants.I2L: return Type.LONG; case Constants.F2D: case Constants.I2D: case Constants.L2D: return Type.DOUBLE; case Constants.I2B: return Type.BYTE; case Constants.I2C: return Type.CHAR; case Constants.I2S: return Type.SHORT; default: // Never reached throw new ClassGenException("Unknown type " + opcode); } }
Example 2
Source File: ConversionInstruction.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** @return type associated with the instruction */ public Type getType(ConstantPoolGen cp) { switch(opcode) { case Constants.D2I: case Constants.F2I: case Constants.L2I: return Type.INT; case Constants.D2F: case Constants.I2F: case Constants.L2F: return Type.FLOAT; case Constants.D2L: case Constants.F2L: case Constants.I2L: return Type.LONG; case Constants.F2D: case Constants.I2D: case Constants.L2D: return Type.DOUBLE; case Constants.I2B: return Type.BYTE; case Constants.I2C: return Type.CHAR; case Constants.I2S: return Type.SHORT; default: // Never reached throw new ClassGenException("Unknown type " + opcode); } }
Example 3
Source File: ConversionInstruction.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** @return type associated with the instruction */ public Type getType(ConstantPoolGen cp) { switch(opcode) { case Constants.D2I: case Constants.F2I: case Constants.L2I: return Type.INT; case Constants.D2F: case Constants.I2F: case Constants.L2F: return Type.FLOAT; case Constants.D2L: case Constants.F2L: case Constants.I2L: return Type.LONG; case Constants.F2D: case Constants.I2D: case Constants.L2D: return Type.DOUBLE; case Constants.I2B: return Type.BYTE; case Constants.I2C: return Type.CHAR; case Constants.I2S: return Type.SHORT; default: // Never reached throw new ClassGenException("Unknown type " + opcode); } }
Example 4
Source File: ConversionInstruction.java From JDKSourceCode1.8 with MIT License | 6 votes |
/** @return type associated with the instruction */ public Type getType(ConstantPoolGen cp) { switch(opcode) { case Constants.D2I: case Constants.F2I: case Constants.L2I: return Type.INT; case Constants.D2F: case Constants.I2F: case Constants.L2F: return Type.FLOAT; case Constants.D2L: case Constants.F2L: case Constants.I2L: return Type.LONG; case Constants.F2D: case Constants.I2D: case Constants.L2D: return Type.DOUBLE; case Constants.I2B: return Type.BYTE; case Constants.I2C: return Type.CHAR; case Constants.I2S: return Type.SHORT; default: // Never reached throw new ClassGenException("Unknown type " + opcode); } }
Example 5
Source File: ConversionInstruction.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** @return type associated with the instruction */ public Type getType(ConstantPoolGen cp) { switch(opcode) { case Constants.D2I: case Constants.F2I: case Constants.L2I: return Type.INT; case Constants.D2F: case Constants.I2F: case Constants.L2F: return Type.FLOAT; case Constants.D2L: case Constants.F2L: case Constants.I2L: return Type.LONG; case Constants.F2D: case Constants.I2D: case Constants.L2D: return Type.DOUBLE; case Constants.I2B: return Type.BYTE; case Constants.I2C: return Type.CHAR; case Constants.I2S: return Type.SHORT; default: // Never reached throw new ClassGenException("Unknown type " + opcode); } }
Example 6
Source File: ConversionInstruction.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** @return type associated with the instruction */ public Type getType(ConstantPoolGen cp) { switch(opcode) { case Constants.D2I: case Constants.F2I: case Constants.L2I: return Type.INT; case Constants.D2F: case Constants.I2F: case Constants.L2F: return Type.FLOAT; case Constants.D2L: case Constants.F2L: case Constants.I2L: return Type.LONG; case Constants.F2D: case Constants.I2D: case Constants.L2D: return Type.DOUBLE; case Constants.I2B: return Type.BYTE; case Constants.I2C: return Type.CHAR; case Constants.I2S: return Type.SHORT; default: // Never reached throw new ClassGenException("Unknown type " + opcode); } }
Example 7
Source File: ConversionInstruction.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** @return type associated with the instruction */ public Type getType(ConstantPoolGen cp) { switch(opcode) { case Constants.D2I: case Constants.F2I: case Constants.L2I: return Type.INT; case Constants.D2F: case Constants.I2F: case Constants.L2F: return Type.FLOAT; case Constants.D2L: case Constants.F2L: case Constants.I2L: return Type.LONG; case Constants.F2D: case Constants.I2D: case Constants.L2D: return Type.DOUBLE; case Constants.I2B: return Type.BYTE; case Constants.I2C: return Type.CHAR; case Constants.I2S: return Type.SHORT; default: // Never reached throw new ClassGenException("Unknown type " + opcode); } }
Example 8
Source File: ConversionInstruction.java From hottub with GNU General Public License v2.0 | 6 votes |
/** @return type associated with the instruction */ public Type getType(ConstantPoolGen cp) { switch(opcode) { case Constants.D2I: case Constants.F2I: case Constants.L2I: return Type.INT; case Constants.D2F: case Constants.I2F: case Constants.L2F: return Type.FLOAT; case Constants.D2L: case Constants.F2L: case Constants.I2L: return Type.LONG; case Constants.F2D: case Constants.I2D: case Constants.L2D: return Type.DOUBLE; case Constants.I2B: return Type.BYTE; case Constants.I2C: return Type.CHAR; case Constants.I2S: return Type.SHORT; default: // Never reached throw new ClassGenException("Unknown type " + opcode); } }
Example 9
Source File: ConversionInstruction.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** @return type associated with the instruction */ public Type getType(ConstantPoolGen cp) { switch(opcode) { case Constants.D2I: case Constants.F2I: case Constants.L2I: return Type.INT; case Constants.D2F: case Constants.I2F: case Constants.L2F: return Type.FLOAT; case Constants.D2L: case Constants.F2L: case Constants.I2L: return Type.LONG; case Constants.F2D: case Constants.I2D: case Constants.L2D: return Type.DOUBLE; case Constants.I2B: return Type.BYTE; case Constants.I2C: return Type.CHAR; case Constants.I2S: return Type.SHORT; default: // Never reached throw new ClassGenException("Unknown type " + opcode); } }
Example 10
Source File: ConversionInstruction.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** @return type associated with the instruction */ public Type getType(ConstantPoolGen cp) { switch(opcode) { case Constants.D2I: case Constants.F2I: case Constants.L2I: return Type.INT; case Constants.D2F: case Constants.I2F: case Constants.L2F: return Type.FLOAT; case Constants.D2L: case Constants.F2L: case Constants.I2L: return Type.LONG; case Constants.F2D: case Constants.I2D: case Constants.L2D: return Type.DOUBLE; case Constants.I2B: return Type.BYTE; case Constants.I2C: return Type.CHAR; case Constants.I2S: return Type.SHORT; default: // Never reached throw new ClassGenException("Unknown type " + opcode); } }