Package com.aparapi.internal.instruction
Class BranchSet.SimpleLogicalExpressionNode
- java.lang.Object
-
- com.aparapi.internal.instruction.BranchSet.LogicalExpressionNode
-
- com.aparapi.internal.instruction.BranchSet.SimpleLogicalExpressionNode
-
- Enclosing class:
- BranchSet
public static class BranchSet.SimpleLogicalExpressionNode extends BranchSet.LogicalExpressionNode
A node in the expression tree representing a simple logical expression. For example in the following would appear as a SimpleLogicalExpressionNode(i<3)
if (i<3){}
-
-
Field Summary
Fields Modifier and Type Field Description private InstructionSet.ConditionalBranch
branch
private boolean
invert
-
Constructor Summary
Constructors Modifier Constructor Description SimpleLogicalExpressionNode(InstructionSet.ConditionalBranch _branch)
private
SimpleLogicalExpressionNode(InstructionSet.ConditionalBranch _branch, boolean _invert)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BranchSet.LogicalExpressionNode
cloneInverted()
InstructionSet.ConditionalBranch
getBranch()
int
getFallThrough()
int
getTarget()
void
invert()
boolean
isInvert()
java.lang.String
toString()
-
-
-
Field Detail
-
branch
private final InstructionSet.ConditionalBranch branch
-
invert
private boolean invert
-
-
Constructor Detail
-
SimpleLogicalExpressionNode
public SimpleLogicalExpressionNode(InstructionSet.ConditionalBranch _branch)
-
SimpleLogicalExpressionNode
private SimpleLogicalExpressionNode(InstructionSet.ConditionalBranch _branch, boolean _invert)
-
-
Method Detail
-
getTarget
public int getTarget()
- Specified by:
getTarget
in classBranchSet.LogicalExpressionNode
-
invert
public void invert()
- Specified by:
invert
in classBranchSet.LogicalExpressionNode
-
cloneInverted
public BranchSet.LogicalExpressionNode cloneInverted()
- Specified by:
cloneInverted
in classBranchSet.LogicalExpressionNode
-
getFallThrough
public int getFallThrough()
- Specified by:
getFallThrough
in classBranchSet.LogicalExpressionNode
-
isInvert
public boolean isInvert()
-
getBranch
public InstructionSet.ConditionalBranch getBranch()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-