JSRpublic class JSR extends JsrInstruction implements VariableLengthInstruction
Constructors Summary |
---|
JSR()Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction(). Not to be used otherwise.
| public JSR(InstructionHandle target)
super(com.sun.org.apache.bcel.internal.Constants.JSR, target);
|
Methods Summary |
---|
public void | accept(com.sun.org.apache.bcel.internal.generic.Visitor v)Call corresponding visitor method(s). The order is:
Call visitor methods of implemented interfaces first, then
call methods according to the class hierarchy in descending order,
i.e., the most specific visitXXX() call comes last.
v.visitStackProducer(this);
v.visitVariableLengthInstruction(this);
v.visitBranchInstruction(this);
v.visitJsrInstruction(this);
v.visitJSR(this);
| public void | dump(java.io.DataOutputStream out)Dump instruction as byte code to stream out.
index = getTargetOffset();
if(opcode == com.sun.org.apache.bcel.internal.Constants.JSR)
super.dump(out);
else { // JSR_W
index = getTargetOffset();
out.writeByte(opcode);
out.writeInt(index);
}
| protected int | updatePosition(int offset, int max_offset)
int i = getTargetOffset(); // Depending on old position value
position += offset; // Position may be shifted by preceding expansions
if(Math.abs(i) >= (32767 - max_offset)) { // to large for short (estimate)
opcode = com.sun.org.apache.bcel.internal.Constants.JSR_W;
length = 5;
return 2; // 5 - 3
}
return 0;
|
|