Interface IExpression
- All Known Subinterfaces:
IContextExpression<T>
,IFilterExpression
,IMatchExpression<T>
public interface IExpression
A node in the expression tree
- Since:
- 2.0
- Restriction:
- This interface is not intended to be implemented directly by clients.
- Restriction:
- This interface is not intended to be extended directly by clients.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(IExpressionVisitor visitor) Let the visitor visit this instance and all expressions that this instance contains.evaluate
(IEvaluationContext context) Evaluate this expression with given context and variables.int
Returns the expression type (see TYPE_xxx constants).void
toLDAPString
(StringBuffer collector) Appends the an LDAP filter representation of this expression to thecollector
.void
toString
(StringBuffer collector) Appends the string representation of this expression to the collectorcollector
.
-
Field Details
-
TYPE_ALL
static final int TYPE_ALL- See Also:
-
TYPE_AND
static final int TYPE_AND- See Also:
-
TYPE_AT
static final int TYPE_AT- See Also:
-
TYPE_EQUALS
static final int TYPE_EQUALS- See Also:
-
TYPE_EXISTS
static final int TYPE_EXISTS- See Also:
-
TYPE_GREATER
static final int TYPE_GREATER- See Also:
-
TYPE_GREATER_EQUAL
static final int TYPE_GREATER_EQUAL- See Also:
-
TYPE_LAMBDA
static final int TYPE_LAMBDA- See Also:
-
TYPE_LESS
static final int TYPE_LESS- See Also:
-
TYPE_LESS_EQUAL
static final int TYPE_LESS_EQUAL- See Also:
-
TYPE_LITERAL
static final int TYPE_LITERAL- See Also:
-
TYPE_MATCHES
static final int TYPE_MATCHES- See Also:
-
TYPE_MEMBER
static final int TYPE_MEMBER- See Also:
-
TYPE_NOT
static final int TYPE_NOT- See Also:
-
TYPE_NOT_EQUALS
static final int TYPE_NOT_EQUALS- See Also:
-
TYPE_OR
static final int TYPE_OR- See Also:
-
TYPE_PARAMETER
static final int TYPE_PARAMETER- See Also:
-
TYPE_VARIABLE
static final int TYPE_VARIABLE- See Also:
-
TYPE_ARRAY
static final int TYPE_ARRAY- See Also:
-
TYPE_ASSIGNMENT
static final int TYPE_ASSIGNMENT- See Also:
-
TYPE_COLLECT
static final int TYPE_COLLECT- See Also:
-
TYPE_CONDITION
static final int TYPE_CONDITION- See Also:
-
TYPE_FIRST
static final int TYPE_FIRST- See Also:
-
TYPE_FLATTEN
static final int TYPE_FLATTEN- See Also:
-
TYPE_FUNCTION
static final int TYPE_FUNCTION- See Also:
-
TYPE_INTERSECT
static final int TYPE_INTERSECT- See Also:
-
TYPE_LATEST
static final int TYPE_LATEST- See Also:
-
TYPE_LIMIT
static final int TYPE_LIMIT- See Also:
-
TYPE_PIPE
static final int TYPE_PIPE- See Also:
-
TYPE_SELECT
static final int TYPE_SELECT- See Also:
-
TYPE_TRAVERSE
static final int TYPE_TRAVERSE- See Also:
-
TYPE_UNION
static final int TYPE_UNION- See Also:
-
TYPE_UNIQUE
static final int TYPE_UNIQUE- See Also:
-
-
Method Details
-
accept
Let the visitor visit this instance and all expressions that this instance contains.- Parameters:
visitor
- The visiting visitor.- Returns:
true
if the visitor should continue visiting,false
otherwise.
-
evaluate
Evaluate this expression with given context and variables.- Parameters:
context
- The evaluation context- Returns:
- The result of the evaluation.
-
getExpressionType
int getExpressionType()Returns the expression type (see TYPE_xxx constants). -
toString
Appends the string representation of this expression to the collectorcollector
. -
toLDAPString
Appends the an LDAP filter representation of this expression to thecollector
.- Throws:
UnsupportedOperationException
- if the expression contains nodes that cannot be represented in an LDAP filter
-