Package ipsk.math.bool
Class BoolExpr
- java.lang.Object
-
- ipsk.math.bool.BoolExpr
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
ExtBoolExpr
public class BoolExpr extends java.lang.Object implements java.lang.Cloneable
Represents a boolean condition.- Author:
- klausj
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AND
static java.lang.String
EQUAL
static java.lang.String
GREATER_EQUAL
static java.lang.String
GREATER_THEN
static java.lang.String
LESS_EQUAL
static java.lang.String
LESS_THEN
static java.lang.String
NOT_EQUAL
protected java.lang.Object
operand0
protected java.lang.Object
operand1
protected java.lang.Object
operator
static java.lang.String
OR
-
Constructor Summary
Constructors Constructor Description BoolExpr()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
protected java.lang.Object
cloneType(java.lang.Object o)
boolean
equals(java.lang.Object o)
static java.lang.String[]
getExprOperators()
java.lang.Object
getOperand0()
java.lang.Object
getOperand1()
java.lang.Object
getOperator()
boolean
isExpression()
void
setOperand0(java.lang.Object operand0)
void
setOperand1(java.lang.Object operand1)
void
setOperator(java.lang.Object operator)
-
-
-
Field Detail
-
GREATER_THEN
public static final java.lang.String GREATER_THEN
- See Also:
- Constant Field Values
-
GREATER_EQUAL
public static final java.lang.String GREATER_EQUAL
- See Also:
- Constant Field Values
-
LESS_THEN
public static final java.lang.String LESS_THEN
- See Also:
- Constant Field Values
-
LESS_EQUAL
public static final java.lang.String LESS_EQUAL
- See Also:
- Constant Field Values
-
EQUAL
public static java.lang.String EQUAL
-
NOT_EQUAL
public static java.lang.String NOT_EQUAL
-
AND
public static java.lang.String AND
-
OR
public static java.lang.String OR
-
operand0
protected java.lang.Object operand0
-
operator
protected java.lang.Object operator
-
operand1
protected java.lang.Object operand1
-
-
Method Detail
-
getOperand0
public java.lang.Object getOperand0()
- Returns:
- Returns the operand0.
-
setOperand0
public void setOperand0(java.lang.Object operand0)
- Parameters:
operand0
- The operand0 to set.
-
getOperand1
public java.lang.Object getOperand1()
- Returns:
- Returns the operand1.
-
setOperand1
public void setOperand1(java.lang.Object operand1)
- Parameters:
operand1
- The operand1 to set.
-
getOperator
public java.lang.Object getOperator()
- Returns:
- Returns the operator.
-
setOperator
public void setOperator(java.lang.Object operator)
- Parameters:
operator
- The operator to set.
-
isExpression
public boolean isExpression()
-
getExprOperators
public static java.lang.String[] getExprOperators()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
cloneType
protected java.lang.Object cloneType(java.lang.Object o) throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
-
-