Java Code Examples for com.sun.org.apache.bcel.internal.Constants#CONSTANT_NAMES
The following examples show how to use
com.sun.org.apache.bcel.internal.Constants#CONSTANT_NAMES .
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: ConstantPool.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
/** * Get constant from constant pool and check whether it has the * expected type. * * @param index Index in constant pool * @param tag Tag of expected constant, i.e., its type * @return Constant value * @see Constant * @throws ClassFormatException */ public Constant getConstant(int index, byte tag) throws ClassFormatException { Constant c; c = getConstant(index); if(c == null) throw new ClassFormatException("Constant pool at index " + index + " is null."); if(c.getTag() == tag) return c; else throw new ClassFormatException("Expected class `" + Constants.CONSTANT_NAMES[tag] + "' at index " + index + " and got " + c); }
Example 2
Source File: ConstantPool.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Get constant from constant pool and check whether it has the * expected type. * * @param index Index in constant pool * @param tag Tag of expected constant, i.e., its type * @return Constant value * @see Constant * @throws ClassFormatException */ public Constant getConstant(int index, byte tag) throws ClassFormatException { Constant c; c = getConstant(index); if(c == null) throw new ClassFormatException("Constant pool at index " + index + " is null."); if(c.getTag() == tag) return c; else throw new ClassFormatException("Expected class `" + Constants.CONSTANT_NAMES[tag] + "' at index " + index + " and got " + c); }
Example 3
Source File: ConstantPool.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Get constant from constant pool and check whether it has the * expected type. * * @param index Index in constant pool * @param tag Tag of expected constant, i.e., its type * @return Constant value * @see Constant * @throws ClassFormatException */ public Constant getConstant(int index, byte tag) throws ClassFormatException { Constant c; c = getConstant(index); if(c == null) throw new ClassFormatException("Constant pool at index " + index + " is null."); if(c.getTag() == tag) return c; else throw new ClassFormatException("Expected class `" + Constants.CONSTANT_NAMES[tag] + "' at index " + index + " and got " + c); }
Example 4
Source File: ConstantPool.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Get constant from constant pool and check whether it has the * expected type. * * @param index Index in constant pool * @param tag Tag of expected constant, i.e., its type * @return Constant value * @see Constant * @throws ClassFormatException */ public Constant getConstant(int index, byte tag) throws ClassFormatException { Constant c; c = getConstant(index); if(c == null) throw new ClassFormatException("Constant pool at index " + index + " is null."); if(c.getTag() == tag) return c; else throw new ClassFormatException("Expected class `" + Constants.CONSTANT_NAMES[tag] + "' at index " + index + " and got " + c); }
Example 5
Source File: ConstantPool.java From JDKSourceCode1.8 with MIT License | 6 votes |
/** * Get constant from constant pool and check whether it has the * expected type. * * @param index Index in constant pool * @param tag Tag of expected constant, i.e., its type * @return Constant value * @see Constant * @throws ClassFormatException */ public Constant getConstant(int index, byte tag) throws ClassFormatException { Constant c; c = getConstant(index); if(c == null) throw new ClassFormatException("Constant pool at index " + index + " is null."); if(c.getTag() == tag) return c; else throw new ClassFormatException("Expected class `" + Constants.CONSTANT_NAMES[tag] + "' at index " + index + " and got " + c); }
Example 6
Source File: ConstantPool.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Get constant from constant pool and check whether it has the * expected type. * * @param index Index in constant pool * @param tag Tag of expected constant, i.e., its type * @return Constant value * @see Constant * @throws ClassFormatException */ public Constant getConstant(int index, byte tag) throws ClassFormatException { Constant c; c = getConstant(index); if(c == null) throw new ClassFormatException("Constant pool at index " + index + " is null."); if(c.getTag() == tag) return c; else throw new ClassFormatException("Expected class `" + Constants.CONSTANT_NAMES[tag] + "' at index " + index + " and got " + c); }
Example 7
Source File: ConstantPool.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Get constant from constant pool and check whether it has the * expected type. * * @param index Index in constant pool * @param tag Tag of expected constant, i.e., its type * @return Constant value * @see Constant * @throws ClassFormatException */ public Constant getConstant(int index, byte tag) throws ClassFormatException { Constant c; c = getConstant(index); if(c == null) throw new ClassFormatException("Constant pool at index " + index + " is null."); if(c.getTag() == tag) return c; else throw new ClassFormatException("Expected class `" + Constants.CONSTANT_NAMES[tag] + "' at index " + index + " and got " + c); }
Example 8
Source File: ConstantPool.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Get constant from constant pool and check whether it has the * expected type. * * @param index Index in constant pool * @param tag Tag of expected constant, i.e., its type * @return Constant value * @see Constant * @throws ClassFormatException */ public Constant getConstant(int index, byte tag) throws ClassFormatException { Constant c; c = getConstant(index); if(c == null) throw new ClassFormatException("Constant pool at index " + index + " is null."); if(c.getTag() == tag) return c; else throw new ClassFormatException("Expected class `" + Constants.CONSTANT_NAMES[tag] + "' at index " + index + " and got " + c); }
Example 9
Source File: ConstantPool.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Get constant from constant pool and check whether it has the * expected type. * * @param index Index in constant pool * @param tag Tag of expected constant, i.e., its type * @return Constant value * @see Constant * @throws ClassFormatException */ public Constant getConstant(int index, byte tag) throws ClassFormatException { Constant c; c = getConstant(index); if(c == null) throw new ClassFormatException("Constant pool at index " + index + " is null."); if(c.getTag() == tag) return c; else throw new ClassFormatException("Expected class `" + Constants.CONSTANT_NAMES[tag] + "' at index " + index + " and got " + c); }
Example 10
Source File: ConstantPool.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Get constant from constant pool and check whether it has the * expected type. * * @param index Index in constant pool * @param tag Tag of expected constant, i.e., its type * @return Constant value * @see Constant * @throws ClassFormatException */ public Constant getConstant(int index, byte tag) throws ClassFormatException { Constant c; c = getConstant(index); if(c == null) throw new ClassFormatException("Constant pool at index " + index + " is null."); if(c.getTag() == tag) return c; else throw new ClassFormatException("Expected class `" + Constants.CONSTANT_NAMES[tag] + "' at index " + index + " and got " + c); }
Example 11
Source File: Constant.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
/** * @return String representation. */ public String toString() { return Constants.CONSTANT_NAMES[tag] + "[" + tag + "]"; }
Example 12
Source File: Constant.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** * @return String representation. */ public String toString() { return Constants.CONSTANT_NAMES[tag] + "[" + tag + "]"; }
Example 13
Source File: Constant.java From hottub with GNU General Public License v2.0 | 4 votes |
/** * @return String representation. */ public String toString() { return Constants.CONSTANT_NAMES[tag] + "[" + tag + "]"; }
Example 14
Source File: Constant.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** * @return String representation. */ public String toString() { return Constants.CONSTANT_NAMES[tag] + "[" + tag + "]"; }
Example 15
Source File: Constant.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
/** * @return String representation. */ public String toString() { return Constants.CONSTANT_NAMES[tag] + "[" + tag + "]"; }
Example 16
Source File: Constant.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
/** * @return String representation. */ public String toString() { return Constants.CONSTANT_NAMES[tag] + "[" + tag + "]"; }
Example 17
Source File: Constant.java From JDKSourceCode1.8 with MIT License | 4 votes |
/** * @return String representation. */ public String toString() { return Constants.CONSTANT_NAMES[tag] + "[" + tag + "]"; }
Example 18
Source File: Constant.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
/** * @return String representation. */ public String toString() { return Constants.CONSTANT_NAMES[tag] + "[" + tag + "]"; }
Example 19
Source File: Constant.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
/** * @return String representation. */ public String toString() { return Constants.CONSTANT_NAMES[tag] + "[" + tag + "]"; }
Example 20
Source File: Constant.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
/** * @return String representation. */ public String toString() { return Constants.CONSTANT_NAMES[tag] + "[" + tag + "]"; }