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
-
Field Summary
FieldsFields inherited from class Instruction
method, pc -
Constructor Summary
ConstructorsConstructorDescriptionBranch(MethodModel _methodPoolEntry, InstructionSet.ByteCode _byteCode, Instruction _target) Branch(MethodModel _methodPoolEntry, InstructionSet.ByteCode _byteCode, ByteReader _byteReader, boolean _wide) -
Method Summary
Modifier and TypeMethodDescriptionintprivate intbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidretarget(Instruction _newTarget) voidsetBreakOrContinue(boolean b) voidsetTarget(Instruction _target) voidunhook()Methods inherited from class Instruction
addBranchTarget, asBranch, compareTo, consumesStack, getByteCode, getDescription, 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
-
Field Details
-
offset
protected int offset -
breakOrContinue
protected boolean breakOrContinue -
target
-
-
Constructor Details
-
Branch
public Branch(MethodModel _methodPoolEntry, InstructionSet.ByteCode _byteCode, ByteReader _byteReader, boolean _wide) -
Branch
-
-
Method Details
-
getAbsolute
public int getAbsolute() -
getOffset
private int getOffset() -
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
-