Interface: Evaluable

system. Evaluable

An Evaluable class can interpret an object to another object.

It's not necessary a parser, but the most common cases would be a string being evaluated to an object structure.

Note: eval always take one and only one argument, if you need to configure the evaluator pass different arguments in the constructor.

Methods


eval(value)

Evaluates the specified object.

Parameters:
Name Type Description
value *

The object to evaluates.

Returns:

The result of the evaluation.


toString()

Returns the string representation of this instance.

Returns:

The string representation of this instance.

Type
string