/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/bcel/internal/generic/ |
H A D | ElementValuePairGen.java | 40 private final ConstantPoolGen cpool; field in class:ElementValuePairGen 42 public ElementValuePairGen(final ElementValuePair nvp, final ConstantPoolGen cpool, argument 45 this.cpool = cpool; 48 // cpool.getConstant(nvp.getNameIndex()) 50 // (!nvp.getNameString().equals(((ConstantUtf8)cpool.getConstant(nvp.getNameIndex())).getBytes())) 56 nameIdx = cpool.addUtf8(nvp.getNameString()); 62 value = ElementValueGen.copy(nvp.getValue(), cpool, copyPoolEntries); 71 return new ElementValuePair(nameIdx, immutableValue, cpool 76 final ConstantPoolGen cpool) 75 ElementValuePairGen(final int idx, final ElementValueGen value, final ConstantPoolGen cpool) argument 83 ElementValuePairGen(final String name, final ElementValueGen value, final ConstantPoolGen cpool) argument [all...] |
H A D | ClassElementValueGen.java | 37 // the cpool 38 // For 'class' this points to the class entry in the cpool 41 protected ClassElementValueGen(final int typeIdx, final ConstantPoolGen cpool) argument 43 super(ElementValueGen.CLASS, cpool); 47 public ClassElementValueGen(final ObjectType t, final ConstantPoolGen cpool) argument 49 super(ElementValueGen.CLASS, cpool); 50 // this.idx = cpool.addClass(t); 51 idx = cpool.addUtf8(t.getSignature()); 65 public ClassElementValueGen(final ClassElementValue value, final ConstantPoolGen cpool, argument 68 super(CLASS, cpool); [all...] |
H A D | EnumElementValueGen.java | 47 final ConstantPoolGen cpool) 49 super(ElementValueGen.ENUM_CONSTANT, cpool); 71 public EnumElementValueGen(final ObjectType t, final String value, final ConstantPoolGen cpool) argument 73 super(ElementValueGen.ENUM_CONSTANT, cpool); 74 typeIdx = cpool.addUtf8(t.getSignature());// was addClass(t); 75 valueIdx = cpool.addUtf8(value);// was addString(value); 78 public EnumElementValueGen(final EnumElementValue value, final ConstantPoolGen cpool, argument 81 super(ENUM_CONSTANT, cpool); 84 typeIdx = cpool.addUtf8(value.getEnumTypeString());// was 86 valueIdx = cpool 46 EnumElementValueGen(final int typeIdx, final int valueIdx, final ConstantPoolGen cpool) argument [all...] |
H A D | AnnotationElementValueGen.java | 38 public AnnotationElementValueGen(final AnnotationEntryGen a, final ConstantPoolGen cpool) argument 40 super(ANNOTATION, cpool); 45 final ConstantPoolGen cpool) 47 super(type, cpool); 56 final ConstantPoolGen cpool, final boolean copyPoolEntries) 58 super(ANNOTATION, cpool); 59 a = new AnnotationEntryGen(value.getAnnotationEntry(), cpool, copyPoolEntries); 44 AnnotationElementValueGen(final int type, final AnnotationEntryGen annotation, final ConstantPoolGen cpool) argument 55 AnnotationElementValueGen(final AnnotationElementValue value, final ConstantPoolGen cpool, final boolean copyPoolEntries) argument
|
H A D | AnnotationEntryGen.java | 50 private final ConstantPoolGen cpool; field in class:AnnotationEntryGen 58 * will force us to do a deep copy of the annotation and move the cpool 62 public AnnotationEntryGen(final AnnotationEntry a, final ConstantPoolGen cpool, argument 64 this.cpool = cpool; 66 typeIndex = cpool.addUtf8(a.getAnnotationType()); 71 evs = copyValues(a.getElementValuePairs(), cpool, copyPoolEntries); 74 private List<ElementValuePairGen> copyValues(final ElementValuePair[] in, final ConstantPoolGen cpool, argument 78 out.add(new ElementValuePairGen(nvp, cpool, copyPoolEntries)); 83 private AnnotationEntryGen(final ConstantPoolGen cpool) { argument 99 AnnotationEntryGen(final ObjectType type, final List<ElementValuePairGen> elements, final boolean vis, final ConstantPoolGen cpool) argument 108 read(final DataInput dis, final ConstantPoolGen cpool, final boolean b) argument [all...] |
H A D | ArrayElementValueGen.java | 48 final ConstantPoolGen cpool) 50 super(type, cpool); 57 evalues.add(ElementValueGen.copy(datum, cpool, true)); 79 * @param cpool 81 public ArrayElementValueGen(final ArrayElementValue value, final ConstantPoolGen cpool, argument 84 super(ARRAY, cpool); 88 evalues.add(ElementValueGen.copy(element, cpool, copyPoolEntries)); 47 ArrayElementValueGen(final int type, final ElementValue[] datums, final ConstantPoolGen cpool) argument
|
H A D | SimpleElementValueGen.java | 121 final ConstantPoolGen cpool, final boolean copyPoolEntries) 123 super(value.getElementValueType(), cpool); 127 // cpool.getConstant(SimpleElementValuevalue.getIndex()) 135 idx = cpool.addUtf8(value.getValueString()); 138 idx = cpool.addInteger(value.getValueInt()); 141 idx = cpool.addInteger(value.getValueByte()); 144 idx = cpool.addInteger(value.getValueChar()); 147 idx = cpool.addLong(value.getValueLong()); 150 idx = cpool.addFloat(value.getValueFloat()); 153 idx = cpool 120 SimpleElementValueGen(final SimpleElementValue value, final ConstantPoolGen cpool, final boolean copyPoolEntries) argument [all...] |
H A D | ElementValueGen.java | 157 final ConstantPoolGen cpool, final boolean copyPoolEntries) 170 return new SimpleElementValueGen((SimpleElementValue) value, cpool, 173 return new EnumElementValueGen((EnumElementValue) value, cpool, 177 (AnnotationElementValue) value, cpool, copyPoolEntries); 179 return new ArrayElementValueGen((ArrayElementValue) value, cpool, 182 return new ClassElementValueGen((ClassElementValue) value, cpool, 156 copy(final ElementValue value, final ConstantPoolGen cpool, final boolean copyPoolEntries) argument
|
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/bcel/internal/classfile/ |
H A D | ElementValue.java | 36 private final ConstantPool cpool; field in class:ElementValue 44 protected ElementValue(final int type, final ConstantPool cpool) argument 47 this.cpool = cpool; 73 public static ElementValue readElementValue(final DataInput input, final ConstantPool cpool) throws IOException argument 87 return new SimpleElementValue(type, input.readUnsignedShort(), cpool); 90 return new EnumElementValue(ENUM_CONSTANT, input.readUnsignedShort(), input.readUnsignedShort(), cpool); 93 return new ClassElementValue(CLASS, input.readUnsignedShort(), cpool); 97 return new AnnotationElementValue(ANNOTATION, AnnotationEntry.read(input, cpool, false), cpool); [all...] |
H A D | SimpleElementValue.java | 36 public SimpleElementValue(final int type, final int index, final ConstantPool cpool) argument 38 super(type, cpool); 43 * @return Value entry index in the cpool 159 final ConstantPool cpool = super.getConstantPool(); 164 final ConstantInteger c = (ConstantInteger) cpool.getConstant(getIndex(), 168 final ConstantLong j = (ConstantLong) cpool.getConstant(getIndex(), 172 final ConstantDouble d = (ConstantDouble) cpool.getConstant(getIndex(), 176 final ConstantFloat f = (ConstantFloat) cpool.getConstant(getIndex(), 180 final ConstantInteger s = (ConstantInteger) cpool.getConstant(getIndex(), 184 final ConstantInteger b = (ConstantInteger) cpool [all...] |
H A D | AnnotationElementValue.java | 36 final ConstantPool cpool) 38 super(type, cpool); 35 AnnotationElementValue(final int type, final AnnotationEntry annotationEntry, final ConstantPool cpool) argument
|
H A D | EnclosingMethod.java | 53 EnclosingMethod(final int nameIndex, final int len, final DataInput input, final ConstantPool cpool) throws IOException { argument 54 this(nameIndex, len, input.readUnsignedShort(), input.readUnsignedShort(), cpool); 57 private EnclosingMethod(final int nameIndex, final int len, final int classIdx,final int methodIdx, final ConstantPool cpool) { argument 58 super(Const.ATTR_ENCLOSING_METHOD, nameIndex, len, cpool);
|
H A D | ClassElementValue.java | 35 // the cpool 36 // For 'class' this points to the class entry in the cpool 39 public ClassElementValue(final int type, final int idx, final ConstantPool cpool) argument 41 super(type, cpool);
|
/openjdk10/jdk/src/jdk.rmic/share/classes/sun/tools/java/ |
H A D | BinaryCode.java | 41 BinaryConstantPool cpool; // constant pool of the class field in class:BinaryCode 49 BinaryCode(byte data[], BinaryConstantPool cpool, Environment env) { argument 52 this.cpool = cpool; 73 ClassDeclaration xclass = cpool.getDeclaration(env, in.readUnsignedShort()); 77 this.atts = BinaryAttribute.load(in, cpool, ~0); 107 BinaryCode load(BinaryMember bf, BinaryConstantPool cpool, Environment env) { argument 109 return (code != null) ? new BinaryCode(code, cpool, env) : null;
|
H A D | BinaryConstantPool.java | 45 private Object cpool[]; field in class:BinaryConstantPool 53 cpool = new Object[types.length]; 54 for (int i = 1 ; i < cpool.length ; i++) { 59 cpool[i] = in.readUTF(); 63 cpool[i] = in.readInt(); 66 cpool[i] = new Float(in.readFloat()); 69 cpool[i++] = in.readLong(); 72 cpool[i++] = new Double(in.readDouble()); 79 cpool[i] =in.readUnsignedShort(); 87 cpool[ [all...] |
H A D | BinaryClass.java | 45 BinaryConstantPool cpool; field in class:BinaryClass 135 BinaryConstantPool cpool = new BinaryConstantPool(in); 138 Vector<ClassDeclaration> dependencies = cpool.getDependencies(env); 144 ClassDeclaration classDecl = cpool.getDeclaration(env, in.readUnsignedShort()); 147 ClassDeclaration superClassDecl = cpool.getDeclaration(env, in.readUnsignedShort()); 153 interfaces[i] = cpool.getDeclaration(env, in.readUnsignedShort()); 159 c.cpool = cpool; 170 Identifier fieldName = cpool.getIdentifier(in.readUnsignedShort()); 172 Type fieldType = cpool [all...] |
H A D | BinaryAttribute.java | 58 public static BinaryAttribute load(DataInputStream in, BinaryConstantPool cpool, int mask) throws IOException { argument 64 Identifier id = cpool.getIdentifier(in.readUnsignedShort()); 82 BinaryConstantPool cpool, Environment env) throws IOException { 94 out.writeShort(cpool.indexString(name.toString(), env)); 81 write(BinaryAttribute attributes, DataOutputStream out, BinaryConstantPool cpool, Environment env) argument
|
/openjdk10/hotspot/src/share/vm/ci/ |
H A D | ciStreams.cpp | 188 constantPoolHandle cpool(_method->get_Method()->constants()); 189 return CURRENT_ENV->get_klass_by_index(cpool, get_klass_index(), will_link, _holder); 219 constantPoolHandle cpool(_method->get_Method()->constants()); 220 return cpool->object_to_cp_index(index); 246 constantPoolHandle cpool(_method->get_Method()->constants()); 247 return CURRENT_ENV->get_constant_by_index(cpool, pool_index, cache_index, _holder); 299 constantPoolHandle cpool(_method->get_Method()->constants()); 302 return CURRENT_ENV->get_klass_by_index(cpool, holder_index, ignore, _holder) 314 ConstantPool* cpool = _holder->get_instanceKlass()->constants(); 315 return cpool 327 ConstantPool* cpool = _holder->get_instanceKlass()->constants(); local 458 ConstantPool* cpool = _method->get_Method()->constants(); local 468 get_method_signature_index(const constantPoolHandle& cpool) argument 481 ConstantPool* cpool = _holder->get_instanceKlass()->constants(); local [all...] |
H A D | ciExceptionHandler.cpp | 43 constantPoolHandle cpool(_loading_klass->get_instanceKlass()->constants()); 44 ciKlass* k = CURRENT_ENV->get_klass_by_index(cpool,
|
H A D | ciEnv.cpp | 389 const constantPoolHandle& cpool, 405 return get_klass_by_name_impl(accessing_klass, cpool, strippedname, require_local); 462 cpool, 471 if (found_klass == NULL && !cpool.is_null() && cpool->has_preresolution()) { 473 for (int i = cpool->length() - 1; i >= 1; i--) { 474 if (cpool->tag_at(i).is_klass()) { 475 Klass* kls = cpool->resolved_klass_at(i); 511 ciKlass* ciEnv::get_klass_by_index_impl(const constantPoolHandle& cpool, argument 519 if (cpool 388 get_klass_by_name_impl(ciKlass* accessing_klass, const constantPoolHandle& cpool, ciSymbol* name, bool require_local) argument 568 get_klass_by_index(const constantPoolHandle& cpool, int index, bool& is_accessible, ciInstanceKlass* accessor) argument 579 get_constant_by_index_impl(const constantPoolHandle& cpool, int pool_index, int cache_index, ciInstanceKlass* accessor) argument 665 get_constant_by_index(const constantPoolHandle& cpool, int pool_index, int cache_index, ciInstanceKlass* accessor) argument 747 get_method_by_index_impl(const constantPoolHandle& cpool, int index, Bytecodes::Code bc, ciInstanceKlass* accessor) argument 861 get_method_by_index(const constantPoolHandle& cpool, int index, Bytecodes::Code bc, ciInstanceKlass* accessor) argument [all...] |
H A D | ciField.cpp | 78 constantPoolHandle cpool(thread, klass->get_instanceKlass()->constants()); 81 Symbol* name = cpool->name_ref_at(index); 84 int nt_index = cpool->name_and_type_ref_index_at(index); 85 int sig_index = cpool->signature_ref_index_at(nt_index); 86 Symbol* signature = cpool->symbol_at(sig_index); 97 _type = ciEnv::current(thread)->get_klass_by_index(cpool, sig_index, ignore, klass); 108 int holder_index = cpool->klass_ref_index_at(index); 111 ciKlass* generic_declared_holder = ciEnv::current(thread)->get_klass_by_index(cpool, holder_index,
|
/openjdk10/langtools/src/jdk.jdeps/share/classes/com/sun/tools/classfile/ |
H A D | ReferenceFinder.java | 50 * @param cpool ConstantPool of the ClassFile being parsed 55 boolean accept(ConstantPool cpool, CPRefInfo cpref); argument 135 public Boolean visitClass(CONSTANT_Class_info info, ConstantPool cpool) { 139 public Boolean visitFieldref(CONSTANT_Fieldref_info info, ConstantPool cpool) { 140 return filter.accept(cpool, info); 143 public Boolean visitDouble(CONSTANT_Double_info info, ConstantPool cpool) { 147 public Boolean visitFloat(CONSTANT_Float_info info, ConstantPool cpool) { 151 public Boolean visitInteger(CONSTANT_Integer_info info, ConstantPool cpool) { 155 public Boolean visitInterfaceMethodref(CONSTANT_InterfaceMethodref_info info, ConstantPool cpool) { 156 return filter.accept(cpool, inf [all...] |
/openjdk10/hotspot/src/share/vm/jvmci/ |
H A D | jvmciEnv.cpp | 90 const constantPoolHandle& cpool, 103 return get_klass_by_name_impl(accessing_klass, cpool, strippedsym, require_local); 141 cpool, 150 if (found_klass == NULL && !cpool.is_null() && cpool->has_preresolution()) { 152 for (int i = cpool->length() - 1; i >= 1; i--) { 153 if (cpool->tag_at(i).is_klass()) { 154 Klass* kls = cpool->resolved_klass_at(i); 170 constantPoolHandle cpool; local 172 cpool, 89 get_klass_by_name_impl(Klass* accessing_klass, const constantPoolHandle& cpool, Symbol* sym, bool require_local) argument 179 get_klass_by_index_impl(const constantPoolHandle& cpool, int index, bool& is_accessible, Klass* accessor) argument 220 get_klass_by_index(const constantPoolHandle& cpool, int index, bool& is_accessible, Klass* accessor) argument 318 get_method_by_index_impl(const constantPoolHandle& cpool, int index, Bytecodes::Code bc, InstanceKlass* accessor) argument 403 get_method_by_index(const constantPoolHandle& cpool, int index, Bytecodes::Code bc, InstanceKlass* accessor) argument [all...] |
H A D | jvmciEnv.hpp | 85 static Klass* get_klass_by_index(const constantPoolHandle& cpool, 91 static methodHandle get_method_by_index(const constantPoolHandle& cpool, 112 const constantPoolHandle& cpool, 115 static Klass* get_klass_by_index_impl(const constantPoolHandle& cpool, 121 static methodHandle get_method_by_index_impl(const constantPoolHandle& cpool,
|
/openjdk10/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/interpreter/ |
H A D | BytecodeLoadConstant.java | 122 ConstantPool cpool = method().getConstants(); 124 return cpool.getKlassNameAt(cpIndex); 146 ConstantPool cpool = method().getConstants(); 148 ConstantTag ctag = cpool.getTagAt(cpIndex); 150 return "<int " + Integer.toString(cpool.getIntAt(cpIndex)) +">"; 152 return "<long " + Long.toString(cpool.getLongAt(cpIndex)) + "L>"; 154 return "<float " + Float.toString(cpool.getFloatAt(cpIndex)) + "F>"; 156 return "<double " + Double.toString(cpool.getDoubleAt(cpIndex)) + "D>"; 161 Symbol sym = cpool.getUnresolvedStringAt(cpIndex); 167 ConstantTag tag = cpool [all...] |