Package org.eclipse.core.expressions
Class CompositeExpression
java.lang.Object
org.eclipse.core.expressions.Expression
org.eclipse.core.expressions.CompositeExpression
- Direct Known Subclasses:
AndExpression
,OrExpression
,WithExpression
- Since:
- 3.7
-
Field Summary
Fields inherited from class org.eclipse.core.expressions.Expression
ATT_VALUE, FALSE, HASH_CODE_NOT_COMPUTED, HASH_FACTOR, TRUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Expression expression) void
Collects information about this expression tree.protected int
Method to compute the hash code for this object.protected EvaluationResult
evaluateAnd
(IEvaluationContext scope) protected EvaluationResult
evaluateOr
(IEvaluationContext scope) toString()
Methods inherited from class org.eclipse.core.expressions.Expression
computeExpressionInfo, equals, equals, evaluate, hashCode, hashCode, hashCode
-
Field Details
-
fExpressions
-
-
Constructor Details
-
CompositeExpression
public CompositeExpression()
-
-
Method Details
-
add
-
getChildren
-
evaluateAnd
- Throws:
CoreException
-
evaluateOr
- Throws:
CoreException
-
collectExpressionInfo
Description copied from class:Expression
Collects information about this expression tree. This default implementation add the expression's type to the set of misbehaving expression types.- Overrides:
collectExpressionInfo
in classExpression
- Parameters:
info
- the expression information object used to collect the information
-
computeHashCode
protected int computeHashCode()Description copied from class:Expression
Method to compute the hash code for this object. The result returned from this method in cached in thefHashCode
field. If the value returned from the method equalsExpression.HASH_CODE_NOT_COMPUTED
(e.g.-1
) then the value is incremented by one.This default implementation calls
super.hashCode()
- Overrides:
computeHashCode
in classExpression
- Returns:
- a hash code for this object.
-
toString
-