public abstract class com.sun.org.apache.bcel.internal.generic.BranchInstruction extends com.sun.org.apache.bcel.internal.generic.Instruction implements com.sun.org.apache.bcel.internal.generic.InstructionTargeter
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.sun.org.apache.bcel.internal.generic.BranchInstruction
super_class: com.sun.org.apache.bcel.internal.generic.Instruction
{
private int index;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private com.sun.org.apache.bcel.internal.generic.InstructionHandle target;
descriptor: Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
flags: (0x0002) ACC_PRIVATE
private int position;
descriptor: I
flags: (0x0002) ACC_PRIVATE
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.sun.org.apache.bcel.internal.generic.Instruction.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/org/apache/bcel/internal/generic/BranchInstruction;
protected void <init>(short, com.sun.org.apache.bcel.internal.generic.InstructionHandle);
descriptor: (SLcom/sun/org/apache/bcel/internal/generic/InstructionHandle;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
iconst_3
invokespecial com.sun.org.apache.bcel.internal.generic.Instruction.<init>:(SS)V
1: aload 0
aload 2
invokevirtual com.sun.org.apache.bcel.internal.generic.BranchInstruction.setTarget:(Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/org/apache/bcel/internal/generic/BranchInstruction;
0 3 1 opcode S
0 3 2 target Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
MethodParameters:
Name Flags
opcode final
target final
public void dump(java.io.DataOutputStream);
descriptor: (Ljava/io/DataOutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokespecial com.sun.org.apache.bcel.internal.generic.Instruction.getOpcode:()S
invokevirtual java.io.DataOutputStream.writeByte:(I)V
1: aload 0
aload 0
invokevirtual com.sun.org.apache.bcel.internal.generic.BranchInstruction.getTargetOffset:()I
putfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.index:I
2: aload 0
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.index:I
invokestatic com.sun.org.apache.bcel.internal.generic.BranchInstruction.isValidShort:(I)Z
ifne 4
3: new com.sun.org.apache.bcel.internal.generic.ClassGenException
dup
new java.lang.StringBuilder
dup
ldc "Branch target offset too large for short: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.index:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial com.sun.org.apache.bcel.internal.generic.ClassGenException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.index:I
invokevirtual java.io.DataOutputStream.writeShort:(I)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/org/apache/bcel/internal/generic/BranchInstruction;
0 6 1 out Ljava/io/DataOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out final
protected int getTargetOffset(com.sun.org.apache.bcel.internal.generic.InstructionHandle);
descriptor: (Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 4
1: new com.sun.org.apache.bcel.internal.generic.ClassGenException
dup
new java.lang.StringBuilder
dup
ldc "Target of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
iconst_1
invokespecial com.sun.org.apache.bcel.internal.generic.Instruction.toString:(Z)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: ldc " is invalid null handle"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokespecial com.sun.org.apache.bcel.internal.generic.ClassGenException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.sun.org.apache.bcel.internal.generic.InstructionHandle.getPosition:()I
istore 2
start local 2 5: iload 2
ifge 9
6: new com.sun.org.apache.bcel.internal.generic.ClassGenException
dup
new java.lang.StringBuilder
dup
ldc "Invalid branch target position offset for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
7: aload 0
iconst_1
invokespecial com.sun.org.apache.bcel.internal.generic.Instruction.toString:(Z)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: invokespecial com.sun.org.apache.bcel.internal.generic.ClassGenException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: int
StackMap stack:
iload 2
aload 0
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.position:I
isub
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/org/apache/bcel/internal/generic/BranchInstruction;
0 10 1 _target Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
5 10 2 t I
MethodParameters:
Name Flags
_target final
protected int getTargetOffset();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.target:Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
invokevirtual com.sun.org.apache.bcel.internal.generic.BranchInstruction.getTargetOffset:(Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/org/apache/bcel/internal/generic/BranchInstruction;
protected int updatePosition(int, int);
descriptor: (II)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
dup
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.position:I
iload 1
iadd
putfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.position:I
1: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/org/apache/bcel/internal/generic/BranchInstruction;
0 2 1 offset I
0 2 2 max_offset I
MethodParameters:
Name Flags
offset final
max_offset final
public java.lang.String toString(boolean);
descriptor: (Z)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokespecial com.sun.org.apache.bcel.internal.generic.Instruction.toString:(Z)Ljava/lang/String;
astore 2
start local 2 1: ldc "null"
astore 3
start local 3 2: iload 1
ifeq 12
3: aload 0
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.target:Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
ifnull 15
4: aload 0
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.target:Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
invokevirtual com.sun.org.apache.bcel.internal.generic.InstructionHandle.getInstruction:()Lcom/sun/org/apache/bcel/internal/generic/Instruction;
aload 0
if_acmpne 7
5: ldc "<points to itself>"
astore 3
6: goto 15
StackMap locals: java.lang.String java.lang.String
StackMap stack:
7: aload 0
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.target:Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
invokevirtual com.sun.org.apache.bcel.internal.generic.InstructionHandle.getInstruction:()Lcom/sun/org/apache/bcel/internal/generic/Instruction;
ifnonnull 10
8: ldc "<null instruction!!!?>"
astore 3
9: goto 15
10: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.target:Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
invokevirtual com.sun.org.apache.bcel.internal.generic.InstructionHandle.getPosition:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
11: goto 15
12: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.target:Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
ifnull 15
13: aload 0
aload 0
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.target:Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
invokevirtual com.sun.org.apache.bcel.internal.generic.InstructionHandle.getPosition:()I
putfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.index:I
14: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.index:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
15: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 2
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 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/sun/org/apache/bcel/internal/generic/BranchInstruction;
0 16 1 verbose Z
1 16 2 s Ljava/lang/String;
2 16 3 t Ljava/lang/String;
MethodParameters:
Name Flags
verbose final
protected void initFromFile(com.sun.org.apache.bcel.internal.util.ByteSequence, boolean);
descriptor: (Lcom/sun/org/apache/bcel/internal/util/ByteSequence;Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_3
invokespecial com.sun.org.apache.bcel.internal.generic.Instruction.setLength:(I)V
1: aload 0
aload 1
invokevirtual com.sun.org.apache.bcel.internal.util.ByteSequence.readShort:()S
putfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.index:I
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/org/apache/bcel/internal/generic/BranchInstruction;
0 3 1 bytes Lcom/sun/org/apache/bcel/internal/util/ByteSequence;
0 3 2 wide Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
bytes final
wide final
public final int getIndex();
descriptor: ()I
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.generic.BranchInstruction.index:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/org/apache/bcel/internal/generic/BranchInstruction;
public com.sun.org.apache.bcel.internal.generic.InstructionHandle getTarget();
descriptor: ()Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.target:Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/org/apache/bcel/internal/generic/BranchInstruction;
public void setTarget(com.sun.org.apache.bcel.internal.generic.InstructionHandle);
descriptor: (Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.target:Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
aload 1
aload 0
invokestatic com.sun.org.apache.bcel.internal.generic.BranchInstruction.notifyTarget:(Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;Lcom/sun/org/apache/bcel/internal/generic/InstructionTargeter;)V
1: aload 0
aload 1
putfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.target:Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/org/apache/bcel/internal/generic/BranchInstruction;
0 3 1 target Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
MethodParameters:
Name Flags
target final
static void notifyTarget(com.sun.org.apache.bcel.internal.generic.InstructionHandle, com.sun.org.apache.bcel.internal.generic.InstructionHandle, com.sun.org.apache.bcel.internal.generic.InstructionTargeter);
descriptor: (Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;Lcom/sun/org/apache/bcel/internal/generic/InstructionTargeter;)V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ifnull 2
1: aload 0
aload 2
invokevirtual com.sun.org.apache.bcel.internal.generic.InstructionHandle.removeTargeter:(Lcom/sun/org/apache/bcel/internal/generic/InstructionTargeter;)V
2: StackMap locals:
StackMap stack:
aload 1
ifnull 4
3: aload 1
aload 2
invokevirtual com.sun.org.apache.bcel.internal.generic.InstructionHandle.addTargeter:(Lcom/sun/org/apache/bcel/internal/generic/InstructionTargeter;)V
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 old_ih Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
0 5 1 new_ih Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
0 5 2 t Lcom/sun/org/apache/bcel/internal/generic/InstructionTargeter;
MethodParameters:
Name Flags
old_ih final
new_ih final
t final
public void updateTarget(com.sun.org.apache.bcel.internal.generic.InstructionHandle, com.sun.org.apache.bcel.internal.generic.InstructionHandle);
descriptor: (Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.target:Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
aload 1
if_acmpne 3
1: aload 0
aload 2
invokevirtual com.sun.org.apache.bcel.internal.generic.BranchInstruction.setTarget:(Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;)V
2: goto 4
3: StackMap locals:
StackMap stack:
new com.sun.org.apache.bcel.internal.generic.ClassGenException
dup
new java.lang.StringBuilder
dup
ldc "Not targeting "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ", but "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.target:Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial com.sun.org.apache.bcel.internal.generic.ClassGenException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/org/apache/bcel/internal/generic/BranchInstruction;
0 5 1 old_ih Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
0 5 2 new_ih Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
MethodParameters:
Name Flags
old_ih final
new_ih final
public boolean containsTarget(com.sun.org.apache.bcel.internal.generic.InstructionHandle);
descriptor: (Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.target:Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
aload 1
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/org/apache/bcel/internal/generic/BranchInstruction;
0 2 1 ih Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;
MethodParameters:
Name Flags
ih final
void dispose();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokevirtual com.sun.org.apache.bcel.internal.generic.BranchInstruction.setTarget:(Lcom/sun/org/apache/bcel/internal/generic/InstructionHandle;)V
1: aload 0
iconst_m1
putfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.index:I
2: aload 0
iconst_m1
putfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.position:I
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/org/apache/bcel/internal/generic/BranchInstruction;
protected int getPosition();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.position:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/org/apache/bcel/internal/generic/BranchInstruction;
protected void setPosition(int);
descriptor: (I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.position:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/org/apache/bcel/internal/generic/BranchInstruction;
0 2 1 position I
MethodParameters:
Name Flags
position final
protected void setIndex(int);
descriptor: (I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield com.sun.org.apache.bcel.internal.generic.BranchInstruction.index:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/org/apache/bcel/internal/generic/BranchInstruction;
0 2 1 index I
MethodParameters:
Name Flags
index final
}
SourceFile: "BranchInstruction.java"