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 boolean
and
private BranchSet.LogicalExpressionNode
lhs
private BranchSet.LogicalExpressionNode
rhs
-
Constructor Summary
Constructors Modifier Constructor Description CompoundLogicalExpressionNode(boolean _and, BranchSet.LogicalExpressionNode _lhs, BranchSet.LogicalExpressionNode _rhs)
private
CompoundLogicalExpressionNode(boolean _and, BranchSet.LogicalExpressionNode _lhs, BranchSet.LogicalExpressionNode _rhs, boolean applyInverts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BranchSet.LogicalExpressionNode
cloneInverted()
int
getFallThrough()
BranchSet.LogicalExpressionNode
getLhs()
BranchSet.LogicalExpressionNode
getRhs()
int
getTarget()
void
invert()
boolean
isAnd()
java.lang.String
toString()
-
-
-
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:
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
-
isAnd
public boolean isAnd()
-
getFallThrough
public int getFallThrough()
- Specified by:
getFallThrough
in classBranchSet.LogicalExpressionNode
-
getLhs
public BranchSet.LogicalExpressionNode getLhs()
-
getRhs
public BranchSet.LogicalExpressionNode getRhs()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-