Package com.aparapi.internal.instruction
Class BranchSet.CompoundLogicalExpressionNode
- java.lang.Object
-
- com.aparapi.internal.instruction.BranchSet.LogicalExpressionNode
-
- com.aparapi.internal.instruction.BranchSet.CompoundLogicalExpressionNode
-
- Enclosing class:
- BranchSet
public static class BranchSet.CompoundLogicalExpressionNode extends BranchSet.LogicalExpressionNode
A node in the expression tree representing a simple logical expression. For example in the following would appear as a CompoundLogicalExpressionNode(i<3 || i>10)
if (i<3 || i>10){}
-
-
Field Summary
Fields Modifier and Type Field Description private booleanandprivate BranchSet.LogicalExpressionNodelhsprivate BranchSet.LogicalExpressionNoderhs
-
Constructor Summary
Constructors Modifier Constructor Description CompoundLogicalExpressionNode(boolean _and, BranchSet.LogicalExpressionNode _lhs, BranchSet.LogicalExpressionNode _rhs)privateCompoundLogicalExpressionNode(boolean _and, BranchSet.LogicalExpressionNode _lhs, BranchSet.LogicalExpressionNode _rhs, boolean applyInverts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BranchSet.LogicalExpressionNodecloneInverted()intgetFallThrough()BranchSet.LogicalExpressionNodegetLhs()BranchSet.LogicalExpressionNodegetRhs()intgetTarget()voidinvert()booleanisAnd()java.lang.StringtoString()
-
-
-
Field Detail
-
lhs
private final BranchSet.LogicalExpressionNode lhs
-
rhs
private final BranchSet.LogicalExpressionNode rhs
-
and
private boolean and
-
-
Constructor Detail
-
CompoundLogicalExpressionNode
private CompoundLogicalExpressionNode(boolean _and, BranchSet.LogicalExpressionNode _lhs, BranchSet.LogicalExpressionNode _rhs, boolean applyInverts)
-
CompoundLogicalExpressionNode
public CompoundLogicalExpressionNode(boolean _and, BranchSet.LogicalExpressionNode _lhs, BranchSet.LogicalExpressionNode _rhs)
-
-
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
-
isAnd
public boolean isAnd()
-
getFallThrough
public int getFallThrough()
- Specified by:
getFallThroughin classBranchSet.LogicalExpressionNode
-
getLhs
public BranchSet.LogicalExpressionNode getLhs()
-
getRhs
public BranchSet.LogicalExpressionNode getRhs()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-