Home
last modified time | relevance | path

Searched refs:constant_pool (Results 1 – 25 of 55) sorted by relevance

123

/external/apache-commons-bcel/src/main/java/org/apache/bcel/classfile/
DAttribute.java74 protected ConstantPool constant_pool; // TODO make private (has getter & setter) field in Attribute
76 …Attribute(final byte tag, final int name_index, final int length, final ConstantPool constant_pool) in Attribute() argument
81 this.constant_pool = constant_pool; in Attribute()
162 …public static Attribute readAttribute(final DataInputStream file, final ConstantPool constant_pool) in readAttribute() argument
165 return readAttribute((DataInput) file, constant_pool); in readAttribute()
183 public static Attribute readAttribute(final DataInput file, final ConstantPool constant_pool) in readAttribute() argument
189 … final ConstantUtf8 c = (ConstantUtf8) constant_pool.getConstant(name_index, Const.CONSTANT_Utf8); in readAttribute()
212 … return ((UnknownAttributeReader) r).createAttribute(name_index, length, file, constant_pool); in readAttribute()
214 return new Unknown(name_index, length, file, constant_pool); in readAttribute()
216 return new ConstantValue(name_index, length, file, constant_pool); in readAttribute()
[all …]
DConstantPool.java40 private Constant[] constant_pool; field in ConstantPool
46 public ConstantPool(final Constant[] constant_pool) { in ConstantPool() argument
47 this.constant_pool = constant_pool; in ConstantPool()
61 constant_pool = new Constant[constant_pool_count]; in ConstantPool()
66 constant_pool[i] = Constant.readConstant(input); in ConstantPool()
74 tag = constant_pool[i].getTag(); in ConstantPool()
219 file.writeShort(constant_pool.length); in dump()
220 for (int i = 1; i < constant_pool.length; i++) { in dump()
221 if (constant_pool[i] != null) { in dump()
222 constant_pool[i].dump(file); in dump()
[all …]
DFieldOrMethod.java65 protected ConstantPool constant_pool; field in FieldOrMethod
92 …protected FieldOrMethod(final DataInputStream file, final ConstantPool constant_pool) throws IOExc… in FieldOrMethod() argument
94 this((DataInput) file, constant_pool); in FieldOrMethod() local
103 …protected FieldOrMethod(final DataInput file, final ConstantPool constant_pool) throws IOException… in FieldOrMethod() argument
105 constant_pool); in FieldOrMethod()
109 attributes[i] = Attribute.readAttribute(file, constant_pool); in FieldOrMethod()
123 final Attribute[] attributes, final ConstantPool constant_pool) { in FieldOrMethod() argument
127 this.constant_pool = constant_pool; in FieldOrMethod()
170 return constant_pool; in getConstantPool()
177 public final void setConstantPool( final ConstantPool constant_pool ) { in setConstantPool() argument
[all …]
DStackMapType.java39 private ConstantPool constant_pool; field in StackMapType
47 StackMapType(final DataInput file, final ConstantPool constant_pool) throws IOException { in StackMapType() argument
48 this(file.readByte(), -1, constant_pool); in StackMapType()
52 this.constant_pool = constant_pool; in StackMapType()
60 public StackMapType(final byte type, final int index, final ConstantPool constant_pool) { in StackMapType() argument
66 this.constant_pool = constant_pool; in StackMapType()
122 return ", class=" + constant_pool.constantToString(index, Const.CONSTANT_Class); in printIndex()
157 return constant_pool; in getConstantPool()
164 public final void setConstantPool( final ConstantPool constant_pool ) { in setConstantPool() argument
165 this.constant_pool = constant_pool; in setConstantPool()
DLocalVariable.java43 private ConstantPool constant_pool; field in LocalVariable
63 LocalVariable(final DataInput file, final ConstantPool constant_pool) throws IOException { in LocalVariable() argument
65 .readUnsignedShort(), file.readUnsignedShort(), constant_pool); in LocalVariable() local
78 final ConstantPool constant_pool) { in LocalVariable() argument
84 this.constant_pool = constant_pool; in LocalVariable()
99 final ConstantPool constant_pool, final int orig_index) { in LocalVariable() argument
105 this.constant_pool = constant_pool; in LocalVariable()
142 return constant_pool; in getConstantPool()
159 c = (ConstantUtf8) constant_pool.getConstant(name_index, Const.CONSTANT_Utf8); in getName()
177 c = (ConstantUtf8) constant_pool.getConstant(signature_index, Const.CONSTANT_Utf8); in getSignature()
[all …]
DAnnotationEntry.java38 private final ConstantPool constant_pool; field in AnnotationEntry
52 …public static AnnotationEntry read(final DataInput input, final ConstantPool constant_pool, final … in read() argument
54 …ntry annotationEntry = new AnnotationEntry(input.readUnsignedShort(), constant_pool, isRuntimeVisi… in read()
59 …ew ElementValuePair(input.readUnsignedShort(), ElementValue.readElementValue(input, constant_pool), in read()
60 constant_pool)); in read()
65 …public AnnotationEntry(final int type_index, final ConstantPool constant_pool, final boolean isRun… in AnnotationEntry() argument
67 this.constant_pool = constant_pool; in AnnotationEntry()
76 return constant_pool; in getConstantPool()
98 … final ConstantUtf8 c = (ConstantUtf8) constant_pool.getConstant(type_index, Const.CONSTANT_Utf8); in getAnnotationType()
DParameterAnnotations.java43 final DataInput input, final ConstantPool constant_pool) throws IOException { in ParameterAnnotations() argument
45 constant_pool); in ParameterAnnotations()
49 parameter_annotation_table[i] = new ParameterAnnotationEntry(input, constant_pool); in ParameterAnnotations()
62 … final ParameterAnnotationEntry[] parameter_annotation_table, final ConstantPool constant_pool) { in ParameterAnnotations() argument
63 super(parameter_annotation_type, name_index, length, constant_pool); in ParameterAnnotations()
120 public Attribute copy( final ConstantPool constant_pool ) { in copy() argument
DJavaClass.java60 private ConstantPool constant_pool; // Constant pool field in JavaClass
120 … final int minor, final int access_flags, final ConstantPool constant_pool, int[] interfaces, in JavaClass() argument
140 this.constant_pool = constant_pool; in JavaClass()
157 class_name = constant_pool.getConstantString(class_name_index, Const.CONSTANT_Class); in JavaClass()
167 superclass_name = constant_pool.getConstantString(superclass_name_index, in JavaClass()
175 final String str = constant_pool.getConstantString(interfaces[i], Const.CONSTANT_Class); in JavaClass()
197 … final int minor, final int access_flags, final ConstantPool constant_pool, final int[] interfaces, in JavaClass() argument
200 constant_pool, interfaces, fields, methods, attributes, HEAP); in JavaClass()
301 constant_pool.dump(file); in dump()
376 return constant_pool; in getConstantPool()
[all …]
DAnnotationDefault.java42 …me_index, final int length, final DataInput input, final ConstantPool constant_pool) throws IOExce… in AnnotationDefault() argument
43 this(name_index, length, (ElementValue) null, constant_pool); in AnnotationDefault()
44 default_value = ElementValue.readElementValue(input, constant_pool); in AnnotationDefault()
53 … name_index, final int length, final ElementValue defaultValue, final ConstantPool constant_pool) { in AnnotationDefault() argument
54 super(Const.ATTR_ANNOTATION_DEFAULT, name_index, length, constant_pool); in AnnotationDefault()
DAnnotations.java43 final ConstantPool constant_pool, final boolean isRuntimeVisible) throws IOException { in Annotations() argument
44 …this(annotation_type, name_index, length, (AnnotationEntry[]) null, constant_pool, isRuntimeVisibl… in Annotations()
48 annotation_table[i] = AnnotationEntry.read(input, constant_pool, isRuntimeVisible); in Annotations()
60 final ConstantPool constant_pool, final boolean isRuntimeVisible) { in Annotations() argument
61 super(annotation_type, name_index, length, constant_pool); in Annotations()
DStackMap.java51 …al int name_index, final int length, final StackMapEntry[] map, final ConstantPool constant_pool) { in StackMap() argument
52 super(Const.ATTR_STACK_MAP, name_index, length, constant_pool); in StackMap()
66 …me_index, final int length, final DataInput input, final ConstantPool constant_pool) throws IOExce… in StackMap() argument
67 this(name_index, length, (StackMapEntry[]) null, constant_pool); in StackMap()
71 map[i] = new StackMapEntry(input, constant_pool); in StackMap()
DUnknown.java75 …own(final int name_index, final int length, final byte[] bytes, final ConstantPool constant_pool) { in Unknown() argument
76 super(Const.ATTR_UNKNOWN, name_index, length, constant_pool); in Unknown()
78 name = ((ConstantUtf8) constant_pool.getConstant(name_index, Const.CONSTANT_Utf8)) in Unknown()
93 …wn(final int name_index, final int length, final DataInput input, final ConstantPool constant_pool) in Unknown() argument
95 this(name_index, length, (byte[]) null, constant_pool); in Unknown()
DSourceFile.java57 …le(final int name_index, final int length, final DataInput input, final ConstantPool constant_pool) in SourceFile() argument
59 this(name_index, length, input.readUnsignedShort(), constant_pool); in SourceFile()
76 …l int name_index, final int length, final int sourcefile_index, final ConstantPool constant_pool) { in SourceFile() argument
77 super(Const.ATTR_SOURCE_FILE, name_index, length, constant_pool); in SourceFile()
DLocalVariableTable.java55 final ConstantPool constant_pool) { in LocalVariableTable() argument
56 super(Const.ATTR_LOCAL_VARIABLE_TABLE, name_index, length, constant_pool); in LocalVariableTable()
69 …le(final int name_index, final int length, final DataInput input, final ConstantPool constant_pool) in LocalVariableTable() argument
71 this(name_index, length, (LocalVariable[]) null, constant_pool); in LocalVariableTable()
75 local_variable_table[i] = new LocalVariable(input, constant_pool); in LocalVariableTable()
DClassParser.java56 private ConstantPool constant_pool; // collection of constants field in ClassParser
191 access_flags, constant_pool, interfaces, fields, methods, attributes, is_zip in parse()
206 attributes[i] = Attribute.readAttribute(dataInputStream, constant_pool); in readAttributes()
239 constant_pool = new ConstantPool(dataInputStream); in readConstantPool()
252 fields[i] = new Field(dataInputStream, constant_pool); in readFields()
294 methods[i] = new Method(dataInputStream, constant_pool); in readMethods()
DDeprecated.java54 …ted(final int name_index, final int length, final byte[] bytes, final ConstantPool constant_pool) { in Deprecated() argument
55 super(Const.ATTR_DEPRECATED, name_index, length, constant_pool); in Deprecated()
69 …ed(final int name_index, final int length, final DataInput input, final ConstantPool constant_pool) in Deprecated() argument
71 this(name_index, length, (byte[]) null, constant_pool); in Deprecated()
DSynthetic.java60 …tic(final int name_index, final int length, final byte[] bytes, final ConstantPool constant_pool) { in Synthetic() argument
61 super(Const.ATTR_SYNTHETIC, name_index, length, constant_pool); in Synthetic()
75 …ic(final int name_index, final int length, final DataInput input, final ConstantPool constant_pool) in Synthetic() argument
77 this(name_index, length, (byte[]) null, constant_pool); in Synthetic()
DPMGClass.java57 …ss(final int name_index, final int length, final DataInput input, final ConstantPool constant_pool) in PMGClass() argument
59 … this(name_index, length, input.readUnsignedShort(), input.readUnsignedShort(), constant_pool); in PMGClass()
71 final ConstantPool constant_pool) { in PMGClass() argument
72 super(Const.ATTR_PMG, name_index, length, constant_pool); in PMGClass()
DRuntimeVisibleAnnotations.java45 …me_index, final int length, final DataInput input, final ConstantPool constant_pool) throws IOExce… in RuntimeVisibleAnnotations() argument
47 … super(Const.ATTR_RUNTIME_VISIBLE_ANNOTATIONS, name_index, length, input, constant_pool, true); in RuntimeVisibleAnnotations()
54 public Attribute copy(final ConstantPool constant_pool) in copy() argument
DRuntimeInvisibleAnnotations.java45 …ns(final int name_index, final int length, final DataInput input, final ConstantPool constant_pool) in RuntimeInvisibleAnnotations() argument
48 … super(Const.ATTR_RUNTIME_INVISIBLE_ANNOTATIONS, name_index, length, input, constant_pool, false); in RuntimeInvisibleAnnotations()
55 public Attribute copy(final ConstantPool constant_pool) in copy() argument
DInnerClasses.java56 final ConstantPool constant_pool) { in InnerClasses() argument
57 super(Const.ATTR_INNER_CLASSES, name_index, length, constant_pool); in InnerClasses()
71 …es(final int name_index, final int length, final DataInput input, final ConstantPool constant_pool) in InnerClasses() argument
73 this(name_index, length, (InnerClass[]) null, constant_pool); in InnerClasses()
/external/apache-commons-bcel/src/main/java/org/apache/bcel/util/
DConstantHTML.java46 private final ConstantPool constant_pool; // reference to constant pool field in ConstantHTML
54 final ConstantPool constant_pool) throws IOException { in ConstantHTML() argument
57 this.constant_pool = constant_pool; in ConstantHTML()
59 constants = constant_pool.getConstantPool(); in ConstantHTML()
101 final ConstantMethodref c = (ConstantMethodref) constant_pool.getConstant(index, in writeConstant()
106 final ConstantInterfaceMethodref c1 = (ConstantInterfaceMethodref) constant_pool in writeConstant()
112 final String method_name = constant_pool.constantToString(name_index, in writeConstant()
116 … final String method_class = constant_pool.constantToString(class_index, Const.CONSTANT_Class); in writeConstant()
121 final ConstantNameAndType c2 = (ConstantNameAndType) constant_pool.getConstant( in writeConstant()
123 final String signature = constant_pool.constantToString(c2.getSignatureIndex(), in writeConstant()
[all …]
DCodeHTML.java52 private final ConstantPool constant_pool; field in CodeHTML
57 …inal String dir, final String class_name, final Method[] methods, final ConstantPool constant_pool, in CodeHTML() argument
61 this.constant_pool = constant_pool; in CodeHTML()
231 final ConstantFieldref c1 = (ConstantFieldref) constant_pool.getConstant(index, in codeToHTML()
234 name = constant_pool.getConstantString(class_index, Const.CONSTANT_Class); in codeToHTML()
237 … final String field_name = constant_pool.constantToString(index, Const.CONSTANT_NameAndType); in codeToHTML()
269 final ConstantInterfaceMethodref c = (ConstantInterfaceMethodref) constant_pool in codeToHTML()
277 final ConstantInvokeDynamic c = (ConstantInvokeDynamic) constant_pool in codeToHTML()
285 … final ConstantMethodref c = (ConstantMethodref) constant_pool.getConstant(m_index, in codeToHTML()
291 str = Class2HTML.toHTML(constant_pool.constantToString(constant_pool.getConstant( in codeToHTML()
[all …]
/external/apache-commons-bcel/src/examples/
Dpatchclass.java63 private static void patchIt(String old, String replacement, Constant[] constant_pool) { in patchIt() argument
70 for (short i = 0; i < constant_pool.length; i++) { in patchIt()
71 if (constant_pool[i] instanceof ConstantUtf8) { // Utf8 string found in patchIt()
73 c = (ConstantUtf8) constant_pool[i]; // Get the string in patchIt()
93 constant_pool[i] = c; in patchIt()
/external/objenesis/main/src/test/java/org/objenesis/
DClassReader.java33 Object[] constant_pool; field in ClassReader
150 String attribute_name = ((CONSTANT_Utf8_info) constant_pool[attribute_name_index]).bytes; in attribute_info()
264 constant_pool = new Object[constant_pool_count]; in readClass()
272 constant_pool[i] = new CONSTANT_Utf8_info(in); in readClass()
275 constant_pool[i] = new CONSTANT_Class_info(in); in readClass()
278 constant_pool[i] = new CONSTANT_Methodref_info(in); in readClass()
281 constant_pool[i] = new CONSTANT_NameAndType_info(in); in readClass()
286 System.out.println(constant_pool[i]); in readClass()

123