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.String
BOTTOM_ARROW
static java.lang.String
CONDITIONAL_START
protected Instruction
end
private boolean
forward
protected Instruction
from
static java.lang.String
NONE
protected Instruction
start
static java.lang.String
THROUGH
protected Instruction
to
static java.lang.String
TOP_ARROW
static java.lang.String
UNCONDITIONAL_START
-
Constructor Summary
Constructors Constructor Description BranchVector(Instruction _from, Instruction _to)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
Instruction
getEnd()
int
getEndPC()
Instruction
getFrom()
Instruction
getStart()
int
getStartPC()
Instruction
getTo()
int
hashCode()
boolean
isBackward()
boolean
isConditionalBranch()
boolean
isForward()
boolean
overlaps(InstructionHelper.BranchVector _other)
java.lang.String
render(int _pc)
java.lang.String
render(int _startPC, int _thisPC)
java.lang.String
toString()
-
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
isForward
public boolean isForward()
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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)
-
-