Package org.eclipse.core.expressions
Class TestExpression
java.lang.Object
org.eclipse.core.expressions.Expression
org.eclipse.core.expressions.TestExpression
- 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
ConstructorDescriptionTestExpression
(String namespace, String property, Object[] args, Object expectedValue) TestExpression
(String namespace, String property, Object[] args, Object expectedValue, boolean forcePluginActivation) TestExpression
(IConfigurationElement element) TestExpression
(Element element) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Collects information about this expression tree.protected int
Method to compute the hash code for this object.boolean
evaluate
(IEvaluationContext context) Evaluates this expression.boolean
static org.eclipse.core.internal.expressions.TypeExtensionManager
toString()
Methods inherited from class org.eclipse.core.expressions.Expression
computeExpressionInfo, equals, equals, hashCode, hashCode, hashCode
-
Constructor Details
-
TestExpression
- Throws:
CoreException
-
TestExpression
- Throws:
CoreException
-
TestExpression
-
TestExpression
-
-
Method Details
-
evaluate
Description copied from class:Expression
Evaluates this expression.- Specified by:
evaluate
in classExpression
- Parameters:
context
- an evaluation context providing information like variable, name spaces, etc. necessary to evaluate this expression- Returns:
- the result of the expression evaluation
- Throws:
CoreException
- if the evaluation failed. The concrete reason is defined by the subclass implementing this method
-
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
-
equals
-
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
-
testGetForcePluginActivation
public boolean testGetForcePluginActivation() -
testGetTypeExtensionManager
public static org.eclipse.core.internal.expressions.TypeExtensionManager testGetTypeExtensionManager()
-