java.lang.Object
Compil3r.BytecodeAnalysis.Bytecodes.Instruction
Compil3r.BytecodeAnalysis.Bytecodes.BranchInstruction
Compil3r.BytecodeAnalysis.Bytecodes.GotoInstruction
Compil3r.BytecodeAnalysis.Bytecodes.GOTO
- All Implemented Interfaces:
- Bytecodes.InstructionTargeter, Bytecodes.UnconditionalBranch, Bytecodes.VariableLengthInstruction, java.lang.Cloneable, java.io.Serializable
- Enclosing class:
- Bytecodes
- public static class Bytecodes.GOTO
- extends Bytecodes.GotoInstruction
- implements Bytecodes.VariableLengthInstruction, Bytecodes.UnconditionalBranch
|
Method Summary |
void |
accept(Bytecodes.Visitor v)
Call corresponding visitor method(s). |
void |
dump(java.io.DataOutputStream out)
Dump instruction as byte code to stream out. |
protected int |
updatePosition(int offset,
int max_offset)
Called in pass 2 of InstructionList.setPositions() in order to update
the branch target, that may shift due to variable length instructions. |
| Methods inherited from class Compil3r.BytecodeAnalysis.Bytecodes.BranchInstruction |
containsTarget, dispose, getIndex, getTarget, getTargetOffset, getTargetOffset, initFromFile, notifyTarget, setTarget, toString, updateTarget |
Bytecodes.GOTO
Bytecodes.GOTO()
- Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction(). Not to be used otherwise.
Bytecodes.GOTO
public Bytecodes.GOTO(Bytecodes.InstructionHandle target)
dump
public void dump(java.io.DataOutputStream out)
throws java.io.IOException
- Dump instruction as byte code to stream out.
- Overrides:
dump in class Bytecodes.BranchInstruction
updatePosition
protected int updatePosition(int offset,
int max_offset)
- Called in pass 2 of InstructionList.setPositions() in order to update
the branch target, that may shift due to variable length instructions.
- Overrides:
updatePosition in class Bytecodes.BranchInstruction
accept
public void accept(Bytecodes.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.
- Specified by:
accept in class Bytecodes.Instruction