trait ExpressionEvaluator extends AnyRef
Evaluate expressions (for variable bindings and the alternatives in a choose).
The expression evaluator is responsible for taking the string form of an expression and evaluating it. The runtime is agnostic to the form of the expressions or their results. In order to support choose steps, it's necessary for the evaluator to be able to return a boolean result for an expression.
The evaluator may throw a com.jafpl.exceptions.JafplException if the specified expression is invalid or, in the case of a request for a boolean, if it has no boolean value.
- Alphabetic
- By Inheritance
- ExpressionEvaluator
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
booleanValue(expr: Any, context: List[Message], bindings: Map[String, Message], params: Option[BindingParams]): Boolean
Evaluate an expression and cast the result to a boolean.
Evaluate an expression and cast the result to a boolean.
- expr
The expression to evaluate.
- context
The expression context.
- bindings
Any variable bindings that are provided for the expression.
- returns
The boolean value of the computed expression.
-
abstract
def
newInstance(): ExpressionEvaluator
Obtain a new instance of the expression evaluator.
Obtain a new instance of the expression evaluator.
If the evalauator is reentrant then it can simply return itself. However, if it has local state, then it must return a new instance ready to evaluate an expression.
- returns
An instance of itself.
-
abstract
def
singletonValue(expr: Any, context: List[Message], bindings: Map[String, Message], params: Option[BindingParams]): Message
Evaluate an expression that is expected to return a single value.
Evaluate an expression that is expected to return a single value.
The
expr
is evaluated according to whatever grammar the evaluator supports. The context is an item from the pipeline. The bindings are variable bindings from the pipeline.- expr
The expression to evaluate.
- context
The expression context.
- bindings
Any variable bindings that are provided for the expression.
- returns
The computed value of the expression.
-
abstract
def
value(expr: Any, context: List[Message], bindings: Map[String, Message], params: Option[BindingParams]): Message
Evaluate an expression.
Evaluate an expression. The expression may return any number of results, including none.
The
expr
is evaluated according to whatever grammar the evaluator supports. The context is an item from the pipeline. The bindings are variable bindings from the pipeline.- expr
The expression to evaluate.
- context
The expression context.
- bindings
Any variable bindings that are provided for the expression.
- returns
The computed value of the expression.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
Just Another Fine Pipeline Language
This is a pipeline framework. It’s built on top of Akka actors to support arbitrary data flow pipelines. It is wholly agnostic to the kinds of data that flow through the pipelines and the implementations of the steps that process them.
See http://jafpl.com/ for more general information.