Package com.aparapi.internal.tool
Class InstructionHelper.BranchVector
- java.lang.Object
-
- com.aparapi.internal.tool.InstructionHelper.BranchVector
-
- Enclosing class:
- InstructionHelper
public static class InstructionHelper.BranchVector extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBOTTOM_ARROWstatic java.lang.StringCONDITIONAL_STARTprotected Instructionendprivate booleanforwardprotected Instructionfromstatic java.lang.StringNONEprotected Instructionstartstatic java.lang.StringTHROUGHprotected Instructiontostatic java.lang.StringTOP_ARROWstatic java.lang.StringUNCONDITIONAL_START
-
Constructor Summary
Constructors Constructor Description BranchVector(Instruction _from, Instruction _to)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)InstructiongetEnd()intgetEndPC()InstructiongetFrom()InstructiongetStart()intgetStartPC()InstructiongetTo()inthashCode()booleanisBackward()booleanisConditionalBranch()booleanisForward()booleanoverlaps(InstructionHelper.BranchVector _other)java.lang.Stringrender(int _pc)java.lang.Stringrender(int _startPC, int _thisPC)java.lang.StringtoString()
-
-
-
Field Detail
-
from
protected Instruction from
-
to
protected Instruction to
-
start
protected Instruction start
-
end
protected Instruction end
-
forward
private boolean forward
-
NONE
public static final java.lang.String NONE
- See Also:
- Constant Field Values
-
THROUGH
public static final java.lang.String THROUGH
- See Also:
- Constant Field Values
-
CONDITIONAL_START
public static final java.lang.String CONDITIONAL_START
- See Also:
- Constant Field Values
-
UNCONDITIONAL_START
public static final java.lang.String UNCONDITIONAL_START
- See Also:
- Constant Field Values
-
TOP_ARROW
public static final java.lang.String TOP_ARROW
- See Also:
- Constant Field Values
-
BOTTOM_ARROW
public static final java.lang.String BOTTOM_ARROW
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BranchVector
public BranchVector(Instruction _from, Instruction _to)
-
-
Method Detail
-
overlaps
public boolean overlaps(InstructionHelper.BranchVector _other)
-
getTo
public Instruction getTo()
-
getFrom
public Instruction getFrom()
-
getStartPC
public int getStartPC()
-
getEndPC
public int getEndPC()
-
getStart
public Instruction getStart()
-
getEnd
public Instruction getEnd()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
isForward
public boolean isForward()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isConditionalBranch
public boolean isConditionalBranch()
-
isBackward
public boolean isBackward()
-
render
public java.lang.String render(int _pc)
-
render
public java.lang.String render(int _startPC, int _thisPC)
-
-