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.ConditionalBranchbranchprivate booleaninvert
-
Constructor Summary
Constructors Modifier Constructor Description SimpleLogicalExpressionNode(InstructionSet.ConditionalBranch _branch)privateSimpleLogicalExpressionNode(InstructionSet.ConditionalBranch _branch, boolean _invert)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BranchSet.LogicalExpressionNodecloneInverted()InstructionSet.ConditionalBranchgetBranch()intgetFallThrough()intgetTarget()voidinvert()booleanisInvert()java.lang.StringtoString()
-
-
-
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:
getTargetin classBranchSet.LogicalExpressionNode
-
invert
public void invert()
- Specified by:
invertin classBranchSet.LogicalExpressionNode
-
cloneInverted
public BranchSet.LogicalExpressionNode cloneInverted()
- Specified by:
cloneInvertedin classBranchSet.LogicalExpressionNode
-
getFallThrough
public int getFallThrough()
- Specified by:
getFallThroughin classBranchSet.LogicalExpressionNode
-
isInvert
public boolean isInvert()
-
getBranch
public InstructionSet.ConditionalBranch getBranch()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-