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){}
- Author:
- gfrost
-
Constructor Summary
Constructors Constructor Description CompoundLogicalExpressionNode(boolean _and, BranchSet.LogicalExpressionNode _lhs, BranchSet.LogicalExpressionNode _rhs)
-
Method Summary
Modifier and Type Method Description BranchSet.LogicalExpressionNode
cloneInverted()
int
getFallThrough()
BranchSet.LogicalExpressionNode
getLhs()
BranchSet.LogicalExpressionNode
getRhs()
int
getTarget()
void
invert()
boolean
isAnd()
String
toString()
-
Constructor Details
-
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
-