org.azzyzt.jee.runtime.dto.query
Interface Node
- All Known Implementing Classes:
- And, BinaryBooleanExpression, Not, Or, QuerySpec, UnaryBooleanExpression
public interface Node
A QuerySpec
has an Expression
, but is itself
used by the parser as root of the expression tree. In order to do that,
both implement Node
.
- See Also:
QuerySpec
,
QuerySyntaxExpression
,
AttributedTags2QuerySpec
add
void add(Expression expression)
throws QuerySyntaxException
- Adds an expression to the current
Node
. Invalid XML can
cause a QuerySyntaxExpression
.
- Parameters:
expression
- the expression to be added
- Throws:
QuerySyntaxException
isValid
boolean isValid()
- Returns:
true
if the expression is valid
getReplaceableBy
Expression getReplaceableBy()
- Returns:
- a simpler and equivalent expression or
null
.