org.azzyzt.jee.runtime.dto.query
Class UnaryBooleanExpression
java.lang.Object
org.azzyzt.jee.runtime.dto.query.Expression
org.azzyzt.jee.runtime.dto.query.UnaryBooleanExpression
- All Implemented Interfaces:
- java.io.Serializable, Node
- Direct Known Subclasses:
- Not
public abstract class UnaryBooleanExpression
- extends Expression
- implements Node
Parent class for boolean expressions with one term. Well, basically Not
.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UnaryBooleanExpression
public UnaryBooleanExpression()
getExpression
public Expression getExpression()
add
public void add(Expression e)
throws QuerySyntaxException
- Description copied from interface:
Node
- Adds an expression to the current
Node
. Invalid XML can
cause a QuerySyntaxExpression
.
- Specified by:
add
in interface Node
- Parameters:
e
- the expression to be added
- Throws:
QuerySyntaxException
setExpression
public void setExpression(Expression expression)
isValid
public boolean isValid()
- Specified by:
isValid
in interface Node
- Specified by:
isValid
in class Expression
- Returns:
true
if the expression is valid
getReplaceableBy
public Expression getReplaceableBy()
- Specified by:
getReplaceableBy
in interface Node
- Specified by:
getReplaceableBy
in class Expression
- Returns:
- a simpler and equivalent expression or
null
.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object