public abstract class com.sun.org.apache.bcel.internal.classfile.Constant implements java.lang.Cloneable, com.sun.org.apache.bcel.internal.classfile.Node, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.sun.org.apache.bcel.internal.classfile.Constant
super_class: java.lang.Object
{
protected byte tag;
descriptor: B
flags: (0x0004) ACC_PROTECTED
void <init>(byte);
descriptor: (B)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
aload 0
iload 1
putfield com.sun.org.apache.bcel.internal.classfile.Constant.tag:B
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/org/apache/bcel/internal/classfile/Constant;
0 1 1 tag B
MethodParameters:
Name Flags
tag
public abstract void accept(com.sun.org.apache.bcel.internal.classfile.Visitor);
descriptor: (Lcom/sun/org/apache/bcel/internal/classfile/Visitor;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
v
public abstract void dump(java.io.DataOutputStream);
descriptor: (Ljava/io/DataOutputStream;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
public final byte getTag();
descriptor: ()B
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.org.apache.bcel.internal.classfile.Constant.tag:B
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/org/apache/bcel/internal/classfile/Constant;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
getstatic com.sun.org.apache.bcel.internal.Constants.CONSTANT_NAMES:[Ljava/lang/String;
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.Constant.tag:B
aaload
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.Constant.tag:B
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/org/apache/bcel/internal/classfile/Constant;
public com.sun.org.apache.bcel.internal.classfile.Constant copy();
descriptor: ()Lcom/sun/org/apache/bcel/internal/classfile/Constant;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.clone:()Ljava/lang/Object;
checkcast com.sun.org.apache.bcel.internal.classfile.Constant
1: areturn
2: StackMap locals:
StackMap stack: java.lang.CloneNotSupportedException
pop
3: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/org/apache/bcel/internal/classfile/Constant;
Exception table:
from to target type
0 1 2 Class java.lang.CloneNotSupportedException
public java.lang.Object clone();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.clone:()Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/org/apache/bcel/internal/classfile/Constant;
Exceptions:
throws java.lang.CloneNotSupportedException
static final com.sun.org.apache.bcel.internal.classfile.Constant readConstant(java.io.DataInputStream);
descriptor: (Ljava/io/DataInputStream;)Lcom/sun/org/apache/bcel/internal/classfile/Constant;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.io.DataInputStream.readByte:()B
istore 1
start local 1 1: iload 1
tableswitch { // 1 - 12
1: 13
2: 14
3: 8
4: 9
5: 10
6: 11
7: 2
8: 7
9: 3
10: 4
11: 5
12: 12
default: 14
}
2: StackMap locals: int
StackMap stack:
new com.sun.org.apache.bcel.internal.classfile.ConstantClass
dup
aload 0
invokespecial com.sun.org.apache.bcel.internal.classfile.ConstantClass.<init>:(Ljava/io/DataInputStream;)V
areturn
3: StackMap locals:
StackMap stack:
new com.sun.org.apache.bcel.internal.classfile.ConstantFieldref
dup
aload 0
invokespecial com.sun.org.apache.bcel.internal.classfile.ConstantFieldref.<init>:(Ljava/io/DataInputStream;)V
areturn
4: StackMap locals:
StackMap stack:
new com.sun.org.apache.bcel.internal.classfile.ConstantMethodref
dup
aload 0
invokespecial com.sun.org.apache.bcel.internal.classfile.ConstantMethodref.<init>:(Ljava/io/DataInputStream;)V
areturn
5: StackMap locals:
StackMap stack:
new com.sun.org.apache.bcel.internal.classfile.ConstantInterfaceMethodref
dup
aload 0
6: invokespecial com.sun.org.apache.bcel.internal.classfile.ConstantInterfaceMethodref.<init>:(Ljava/io/DataInputStream;)V
areturn
7: StackMap locals:
StackMap stack:
new com.sun.org.apache.bcel.internal.classfile.ConstantString
dup
aload 0
invokespecial com.sun.org.apache.bcel.internal.classfile.ConstantString.<init>:(Ljava/io/DataInputStream;)V
areturn
8: StackMap locals:
StackMap stack:
new com.sun.org.apache.bcel.internal.classfile.ConstantInteger
dup
aload 0
invokespecial com.sun.org.apache.bcel.internal.classfile.ConstantInteger.<init>:(Ljava/io/DataInputStream;)V
areturn
9: StackMap locals:
StackMap stack:
new com.sun.org.apache.bcel.internal.classfile.ConstantFloat
dup
aload 0
invokespecial com.sun.org.apache.bcel.internal.classfile.ConstantFloat.<init>:(Ljava/io/DataInputStream;)V
areturn
10: StackMap locals:
StackMap stack:
new com.sun.org.apache.bcel.internal.classfile.ConstantLong
dup
aload 0
invokespecial com.sun.org.apache.bcel.internal.classfile.ConstantLong.<init>:(Ljava/io/DataInputStream;)V
areturn
11: StackMap locals:
StackMap stack:
new com.sun.org.apache.bcel.internal.classfile.ConstantDouble
dup
aload 0
invokespecial com.sun.org.apache.bcel.internal.classfile.ConstantDouble.<init>:(Ljava/io/DataInputStream;)V
areturn
12: StackMap locals:
StackMap stack:
new com.sun.org.apache.bcel.internal.classfile.ConstantNameAndType
dup
aload 0
invokespecial com.sun.org.apache.bcel.internal.classfile.ConstantNameAndType.<init>:(Ljava/io/DataInputStream;)V
areturn
13: StackMap locals:
StackMap stack:
new com.sun.org.apache.bcel.internal.classfile.ConstantUtf8
dup
aload 0
invokespecial com.sun.org.apache.bcel.internal.classfile.ConstantUtf8.<init>:(Ljava/io/DataInputStream;)V
areturn
14: StackMap locals:
StackMap stack:
new com.sun.org.apache.bcel.internal.classfile.ClassFormatException
dup
new java.lang.StringBuilder
dup
ldc "Invalid byte tag in constant pool: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial com.sun.org.apache.bcel.internal.classfile.ClassFormatException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 file Ljava/io/DataInputStream;
1 15 1 b B
Exceptions:
throws java.io.IOException, com.sun.org.apache.bcel.internal.classfile.ClassFormatException
MethodParameters:
Name Flags
file
}
SourceFile: "Constant.java"