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
A node in the expression tree representing a simple logical expression.
For example in the following would appear as a CompoundLogicalExpressionNode
(iinvalid input: '<3' || iinvalid input: '>10')
if (iinvalid input: '<'3 || i>10){}
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final BranchSet.LogicalExpressionNode
private final BranchSet.LogicalExpressionNode
-
Constructor Summary
ConstructorsModifierConstructorDescriptionCompoundLogicalExpressionNode
(boolean _and, BranchSet.LogicalExpressionNode _lhs, BranchSet.LogicalExpressionNode _rhs) private
CompoundLogicalExpressionNode
(boolean _and, BranchSet.LogicalExpressionNode _lhs, BranchSet.LogicalExpressionNode _rhs, boolean applyInverts) -
Method Summary
-
Field Details
-
lhs
-
rhs
-
and
private boolean and
-
-
Constructor Details
-
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 Details
-
getTarget
public int getTarget()- Specified by:
getTarget
in classBranchSet.LogicalExpressionNode
-
invert
public void invert()- Specified by:
invert
in classBranchSet.LogicalExpressionNode
-
cloneInverted
- Specified by:
cloneInverted
in classBranchSet.LogicalExpressionNode
-
isAnd
public boolean isAnd() -
getFallThrough
public int getFallThrough()- Specified by:
getFallThrough
in classBranchSet.LogicalExpressionNode
-
getLhs
-
getRhs
-
toString
-