/external/apache-commons-bcel/src/main/java/org/apache/bcel/classfile/ |
D | Attribute.java | 74 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 …]
|
D | ConstantPool.java | 40 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 …]
|
D | FieldOrMethod.java | 65 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 …]
|
D | StackMapType.java | 39 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()
|
D | LocalVariable.java | 43 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 …]
|
D | AnnotationEntry.java | 38 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()
|
D | ParameterAnnotations.java | 43 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
|
D | JavaClass.java | 60 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 …]
|
D | AnnotationDefault.java | 42 …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()
|
D | Annotations.java | 43 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()
|
D | StackMap.java | 51 …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()
|
D | Unknown.java | 75 …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()
|
D | LocalVariableTable.java | 55 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()
|
D | ClassParser.java | 56 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()
|
D | SourceFile.java | 57 …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()
|
D | Deprecated.java | 54 …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()
|
D | Synthetic.java | 60 …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()
|
D | PMGClass.java | 57 …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()
|
D | Utility.java | 147 …public static String codeToString( final byte[] code, final ConstantPool constant_pool, final int … in codeToString() argument 152 codeToString(stream, constant_pool, verbose); in codeToString() 157 … buf.append(indices).append(codeToString(stream, constant_pool, verbose)).append('\n'); in codeToString() 167 …public static String codeToString( final byte[] code, final ConstantPool constant_pool, final int … in codeToString() argument 168 return codeToString(code, constant_pool, index, length, true); in codeToString() 183 public static String codeToString( final ByteSequence bytes, final ConstantPool constant_pool, in codeToString() argument 327 constant_pool.constantToString(index, Const.CONSTANT_Fieldref)).append( in codeToString() 339 constant_pool.constantToString(index, Const.CONSTANT_Class)) in codeToString() 347 final Constant c = constant_pool.getConstant(index); in codeToString() 351 constant_pool.constantToString(index, c.getTag())) in codeToString() [all …]
|
D | InnerClasses.java | 56 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()
|
D | BootstrapMethods.java | 52 …x, final int length, final BootstrapMethod[] bootstrap_methods, final ConstantPool constant_pool) { in BootstrapMethods() argument 53 super(Const.ATTR_BOOTSTRAP_METHODS, name_index, length, constant_pool); in BootstrapMethods() 66 …me_index, final int length, final DataInput input, final ConstantPool constant_pool) throws IOExce… in BootstrapMethods() argument 67 this(name_index, length, (BootstrapMethod[]) null, constant_pool); in BootstrapMethods()
|
/external/apache-commons-bcel/src/main/java/org/apache/bcel/util/ |
D | ConstantHTML.java | 46 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 …]
|
D | CodeHTML.java | 52 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/ |
D | patchclass.java | 63 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/ |
D | ClassReader.java | 33 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()
|