public final class org.apache.tomcat.util.bcel.classfile.ClassParser
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.tomcat.util.bcel.classfile.ClassParser
super_class: java.lang.Object
{
private static final int MAGIC;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -889275714
private final java.io.DataInput dataInputStream;
descriptor: Ljava/io/DataInput;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String class_name;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String superclassName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private int accessFlags;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.String[] interfaceNames;
descriptor: [Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private org.apache.tomcat.util.bcel.classfile.ConstantPool constantPool;
descriptor: Lorg/apache/tomcat/util/bcel/classfile/ConstantPool;
flags: (0x0002) ACC_PRIVATE
private org.apache.tomcat.util.bcel.classfile.Annotations runtimeVisibleAnnotations;
descriptor: Lorg/apache/tomcat/util/bcel/classfile/Annotations;
flags: (0x0002) ACC_PRIVATE
private static final int BUFSIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8192
private static final java.lang.String[] INTERFACES_EMPTY_ARRAY;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
anewarray java.lang.String
putstatic org.apache.tomcat.util.bcel.classfile.ClassParser.INTERFACES_EMPTY_ARRAY:[Ljava/lang/String;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.io.DataInputStream
dup
new java.io.BufferedInputStream
dup
aload 1
sipush 8192
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;I)V
invokespecial java.io.DataInputStream.<init>:(Ljava/io/InputStream;)V
putfield org.apache.tomcat.util.bcel.classfile.ClassParser.dataInputStream:Ljava/io/DataInput;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/tomcat/util/bcel/classfile/ClassParser;
0 3 1 inputStream Ljava/io/InputStream;
MethodParameters:
Name Flags
inputStream final
public org.apache.tomcat.util.bcel.classfile.JavaClass parse();
descriptor: ()Lorg/apache/tomcat/util/bcel/classfile/JavaClass;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.tomcat.util.bcel.classfile.ClassParser.readID:()V
1: aload 0
invokevirtual org.apache.tomcat.util.bcel.classfile.ClassParser.readVersion:()V
2: aload 0
invokevirtual org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool:()V
3: aload 0
invokevirtual org.apache.tomcat.util.bcel.classfile.ClassParser.readClassInfo:()V
4: aload 0
invokevirtual org.apache.tomcat.util.bcel.classfile.ClassParser.readInterfaces:()V
5: aload 0
invokevirtual org.apache.tomcat.util.bcel.classfile.ClassParser.readFields:()V
6: aload 0
invokevirtual org.apache.tomcat.util.bcel.classfile.ClassParser.readMethods:()V
7: aload 0
invokevirtual org.apache.tomcat.util.bcel.classfile.ClassParser.readAttributes:()V
8: new org.apache.tomcat.util.bcel.classfile.JavaClass
dup
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.class_name:Ljava/lang/String;
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.superclassName:Ljava/lang/String;
9: aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.accessFlags:I
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.constantPool:Lorg/apache/tomcat/util/bcel/classfile/ConstantPool;
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.interfaceNames:[Ljava/lang/String;
10: aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.runtimeVisibleAnnotations:Lorg/apache/tomcat/util/bcel/classfile/Annotations;
11: invokespecial org.apache.tomcat.util.bcel.classfile.JavaClass.<init>:(Ljava/lang/String;Ljava/lang/String;ILorg/apache/tomcat/util/bcel/classfile/ConstantPool;[Ljava/lang/String;Lorg/apache/tomcat/util/bcel/classfile/Annotations;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/tomcat/util/bcel/classfile/ClassParser;
Exceptions:
throws java.io.IOException, org.apache.tomcat.util.bcel.classfile.ClassFormatException
private void readAttributes();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.dataInputStream:Ljava/io/DataInput;
invokeinterface java.io.DataInput.readUnsignedShort:()I
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 18
3: StackMap locals: int int
StackMap stack:
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.dataInputStream:Ljava/io/DataInput;
invokeinterface java.io.DataInput.readUnsignedShort:()I
istore 5
start local 5 4: aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.constantPool:Lorg/apache/tomcat/util/bcel/classfile/ConstantPool;
iload 5
5: iconst_1
6: invokevirtual org.apache.tomcat.util.bcel.classfile.ConstantPool.getConstant:(IB)Lorg/apache/tomcat/util/bcel/classfile/Constant;
checkcast org.apache.tomcat.util.bcel.classfile.ConstantUtf8
astore 3
start local 3 7: aload 3
invokevirtual org.apache.tomcat.util.bcel.classfile.ConstantUtf8.getBytes:()Ljava/lang/String;
astore 4
start local 4 8: aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.dataInputStream:Ljava/io/DataInput;
invokeinterface java.io.DataInput.readInt:()I
istore 6
start local 6 9: aload 4
ldc "RuntimeVisibleAnnotations"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 16
10: aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.runtimeVisibleAnnotations:Lorg/apache/tomcat/util/bcel/classfile/Annotations;
ifnull 14
11: new org.apache.tomcat.util.bcel.classfile.ClassFormatException
dup
12: ldc "RuntimeVisibleAnnotations attribute is not allowed more than once in a class file"
13: invokespecial org.apache.tomcat.util.bcel.classfile.ClassFormatException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals: org.apache.tomcat.util.bcel.classfile.ClassParser int int org.apache.tomcat.util.bcel.classfile.ConstantUtf8 java.lang.String int int
StackMap stack:
aload 0
new org.apache.tomcat.util.bcel.classfile.Annotations
dup
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.dataInputStream:Ljava/io/DataInput;
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.constantPool:Lorg/apache/tomcat/util/bcel/classfile/ConstantPool;
invokespecial org.apache.tomcat.util.bcel.classfile.Annotations.<init>:(Ljava/io/DataInput;Lorg/apache/tomcat/util/bcel/classfile/ConstantPool;)V
putfield org.apache.tomcat.util.bcel.classfile.ClassParser.runtimeVisibleAnnotations:Lorg/apache/tomcat/util/bcel/classfile/Annotations;
15: goto 17
16: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.dataInputStream:Ljava/io/DataInput;
iload 6
invokestatic org.apache.tomcat.util.bcel.classfile.Utility.skipFully:(Ljava/io/DataInput;I)V
end local 6 end local 5 end local 4 end local 3 17: StackMap locals: org.apache.tomcat.util.bcel.classfile.ClassParser int int
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
18: iload 2
iload 1
if_icmplt 3
end local 2 19: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/apache/tomcat/util/bcel/classfile/ClassParser;
1 20 1 attributes_count I
2 19 2 i I
7 17 3 c Lorg/apache/tomcat/util/bcel/classfile/ConstantUtf8;
8 17 4 name Ljava/lang/String;
4 17 5 name_index I
9 17 6 length I
Exceptions:
throws java.io.IOException, org.apache.tomcat.util.bcel.classfile.ClassFormatException
private void readClassInfo();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.dataInputStream:Ljava/io/DataInput;
invokeinterface java.io.DataInput.readUnsignedShort:()I
putfield org.apache.tomcat.util.bcel.classfile.ClassParser.accessFlags:I
1: aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.accessFlags:I
sipush 512
iand
ifeq 3
2: aload 0
dup
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.accessFlags:I
sipush 1024
ior
putfield org.apache.tomcat.util.bcel.classfile.ClassParser.accessFlags:I
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.accessFlags:I
sipush 1024
iand
ifeq 6
4: aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.accessFlags:I
bipush 16
iand
ifeq 6
5: new org.apache.tomcat.util.bcel.classfile.ClassFormatException
dup
ldc "Class can't be both final and abstract"
invokespecial org.apache.tomcat.util.bcel.classfile.ClassFormatException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.dataInputStream:Ljava/io/DataInput;
invokeinterface java.io.DataInput.readUnsignedShort:()I
istore 1
start local 1 7: aload 0
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.constantPool:Lorg/apache/tomcat/util/bcel/classfile/ConstantPool;
iload 1
invokestatic org.apache.tomcat.util.bcel.classfile.Utility.getClassName:(Lorg/apache/tomcat/util/bcel/classfile/ConstantPool;I)Ljava/lang/String;
putfield org.apache.tomcat.util.bcel.classfile.ClassParser.class_name:Ljava/lang/String;
8: aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.dataInputStream:Ljava/io/DataInput;
invokeinterface java.io.DataInput.readUnsignedShort:()I
istore 2
start local 2 9: iload 2
ifle 12
10: aload 0
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.constantPool:Lorg/apache/tomcat/util/bcel/classfile/ConstantPool;
iload 2
invokestatic org.apache.tomcat.util.bcel.classfile.Utility.getClassName:(Lorg/apache/tomcat/util/bcel/classfile/ConstantPool;I)Ljava/lang/String;
putfield org.apache.tomcat.util.bcel.classfile.ClassParser.superclassName:Ljava/lang/String;
11: goto 13
12: StackMap locals: int int
StackMap stack:
aload 0
ldc "java.lang.Object"
putfield org.apache.tomcat.util.bcel.classfile.ClassParser.superclassName:Ljava/lang/String;
13: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/apache/tomcat/util/bcel/classfile/ClassParser;
7 14 1 class_name_index I
9 14 2 superclass_name_index I
Exceptions:
throws java.io.IOException, org.apache.tomcat.util.bcel.classfile.ClassFormatException
private void readConstantPool();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new org.apache.tomcat.util.bcel.classfile.ConstantPool
dup
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.dataInputStream:Ljava/io/DataInput;
invokespecial org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>:(Ljava/io/DataInput;)V
putfield org.apache.tomcat.util.bcel.classfile.ClassParser.constantPool:Lorg/apache/tomcat/util/bcel/classfile/ConstantPool;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/bcel/classfile/ClassParser;
Exceptions:
throws java.io.IOException, org.apache.tomcat.util.bcel.classfile.ClassFormatException
private void readFields();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.dataInputStream:Ljava/io/DataInput;
invokeinterface java.io.DataInput.readUnsignedShort:()I
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: int int
StackMap stack:
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.dataInputStream:Ljava/io/DataInput;
invokestatic org.apache.tomcat.util.bcel.classfile.Utility.swallowFieldOrMethod:(Ljava/io/DataInput;)V
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
iload 1
if_icmplt 3
end local 2 6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/tomcat/util/bcel/classfile/ClassParser;
1 7 1 fields_count I
2 6 2 i I
Exceptions:
throws java.io.IOException, org.apache.tomcat.util.bcel.classfile.ClassFormatException
private void readID();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.dataInputStream:Ljava/io/DataInput;
invokeinterface java.io.DataInput.readInt:()I
ldc -889275714
if_icmpeq 2
1: new org.apache.tomcat.util.bcel.classfile.ClassFormatException
dup
ldc "It is not a Java .class file"
invokespecial org.apache.tomcat.util.bcel.classfile.ClassFormatException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/tomcat/util/bcel/classfile/ClassParser;
Exceptions:
throws java.io.IOException, org.apache.tomcat.util.bcel.classfile.ClassFormatException
private void readInterfaces();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.dataInputStream:Ljava/io/DataInput;
invokeinterface java.io.DataInput.readUnsignedShort:()I
istore 1
start local 1 1: iload 1
ifle 10
2: aload 0
iload 1
anewarray java.lang.String
putfield org.apache.tomcat.util.bcel.classfile.ClassParser.interfaceNames:[Ljava/lang/String;
3: iconst_0
istore 2
start local 2 4: goto 8
5: StackMap locals: int int
StackMap stack:
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.dataInputStream:Ljava/io/DataInput;
invokeinterface java.io.DataInput.readUnsignedShort:()I
istore 3
start local 3 6: aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.interfaceNames:[Ljava/lang/String;
iload 2
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.constantPool:Lorg/apache/tomcat/util/bcel/classfile/ConstantPool;
iload 3
invokestatic org.apache.tomcat.util.bcel.classfile.Utility.getClassName:(Lorg/apache/tomcat/util/bcel/classfile/ConstantPool;I)Ljava/lang/String;
aastore
end local 3 7: iinc 2 1
StackMap locals:
StackMap stack:
8: iload 2
iload 1
if_icmplt 5
end local 2 9: goto 11
10: StackMap locals:
StackMap stack:
aload 0
getstatic org.apache.tomcat.util.bcel.classfile.ClassParser.INTERFACES_EMPTY_ARRAY:[Ljava/lang/String;
putfield org.apache.tomcat.util.bcel.classfile.ClassParser.interfaceNames:[Ljava/lang/String;
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/tomcat/util/bcel/classfile/ClassParser;
1 12 1 interfaces_count I
4 9 2 i I
6 7 3 index I
Exceptions:
throws java.io.IOException, org.apache.tomcat.util.bcel.classfile.ClassFormatException
private void readMethods();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.dataInputStream:Ljava/io/DataInput;
invokeinterface java.io.DataInput.readUnsignedShort:()I
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: int int
StackMap stack:
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.dataInputStream:Ljava/io/DataInput;
invokestatic org.apache.tomcat.util.bcel.classfile.Utility.swallowFieldOrMethod:(Ljava/io/DataInput;)V
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
iload 1
if_icmplt 3
end local 2 6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/tomcat/util/bcel/classfile/ClassParser;
1 7 1 methods_count I
2 6 2 i I
Exceptions:
throws java.io.IOException, org.apache.tomcat.util.bcel.classfile.ClassFormatException
private void readVersion();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.bcel.classfile.ClassParser.dataInputStream:Ljava/io/DataInput;
iconst_4
invokestatic org.apache.tomcat.util.bcel.classfile.Utility.skipFully:(Ljava/io/DataInput;I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/bcel/classfile/ClassParser;
Exceptions:
throws java.io.IOException, org.apache.tomcat.util.bcel.classfile.ClassFormatException
}
SourceFile: "ClassParser.java"