Package org.jppf.node.policy
Class AbstractExpression<E>
java.lang.Object
org.jppf.node.policy.AbstractExpression<E>
- Type Parameters:
E- the type of results returned by the expression.
- All Implemented Interfaces:
Serializable,Expression<E>
- Direct Known Subclasses:
BooleanExpression,NumericExpression,StringExpression
Common super class for expressions written as the value of configuration properties containing;
properties substitutions and scripted values, i.e. containing expressions of the form "
${<property_name>}"
or "$script:<language>:<script_source>{<inline_script_or_script_location>}$".- Author:
- Laurent Cohen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(PropertiesCollection<String> properties) Evaluate this expression against a set of properties.booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jppf.node.policy.Expression
getValueType
-
Constructor Details
-
AbstractExpression
Initialize with a string expression.- Parameters:
expression- the expression to evaluate.
-
-
Method Details
-
evaluate
Description copied from interface:ExpressionEvaluate this expression against a set of properties.- Specified by:
evaluatein interfaceExpression<E>- Parameters:
properties- against which to evaluate.- Returns:
- the expression result.
-
getExpression
- Specified by:
getExpressionin interfaceExpression<E>- Returns:
- the string representing the expression.
-
isLiteral
public boolean isLiteral()- Specified by:
isLiteralin interfaceExpression<E>- Returns:
- whether this expression is a literal value.
-