Package com.aparapi.internal.instruction
Class InstructionSet.Branch
java.lang.Object
com.aparapi.internal.instruction.Instruction
com.aparapi.internal.instruction.InstructionSet.Branch
- Direct Known Subclasses:
InstructionSet.ConditionalBranch
,InstructionSet.Switch
,InstructionSet.UnconditionalBranch
- Enclosing class:
InstructionSet
-
Constructor Summary
ConstructorDescriptionBranch
(MethodModel _methodPoolEntry, InstructionSet.ByteCode _byteCode, Instruction _target) Branch
(MethodModel _methodPoolEntry, InstructionSet.ByteCode _byteCode, ByteReader _byteReader, boolean _wide) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
retarget
(Instruction _newTarget) void
setBreakOrContinue
(boolean b) void
setTarget
(Instruction _target) void
unhook()
Methods inherited from class com.aparapi.internal.instruction.Instruction
addBranchTarget, asBranch, compareTo, consumesStack, getByteCode, getFirstChild, getForwardConditionalBranches, getForwardUnconditionalBranches, getLastChild, getLength, getMethod, getNextExpr, getNextPC, getParentExpr, getPrevExpr, getPrevPC, getReal, getReverseConditionalBranches, getReverseUnconditionalBranches, getRootExpr, getStackConsumeCount, getStackDelta, getStackProduceCount, getStartInstruction, getStartPC, getThisPC, isAfter, isAfterOrEqual, isBefore, isBeforeOrEqual, isBranch, isBranchTarget, isConditionalBranchTarget, isForwardBranch, isForwardBranchTarget, isForwardConditionalBranchTarget, isForwardUnconditionalBranchTarget, isReverseBranchTarget, isReverseConditionalBranchTarget, isReverseUnconditionalBranchTarget, isUnconditionalBranchTarget, producesStack, removeBranchTarget, sameAs, setChildren, setLength, setNextExpr, setNextPC, setParentExpr, setPrevExpr, setPrevPC, toInstruction, toString
-
Constructor Details
-
Branch
public Branch(MethodModel _methodPoolEntry, InstructionSet.ByteCode _byteCode, ByteReader _byteReader, boolean _wide) -
Branch
-
-
Method Details
-
getAbsolute
public int getAbsolute() -
getTarget
-
setTarget
-
isConditional
public boolean isConditional() -
isUnconditional
public boolean isUnconditional() -
isReverseConditional
public boolean isReverseConditional() -
isForwardConditional
public boolean isForwardConditional() -
isReverseUnconditional
public boolean isReverseUnconditional() -
isForwardUnconditional
public boolean isForwardUnconditional() -
isReverse
public boolean isReverse() -
isForward
public boolean isForward() -
unhook
public void unhook() -
setBreakOrContinue
public void setBreakOrContinue(boolean b) -
isBreakOrContinue
public boolean isBreakOrContinue() -
retarget
-