public class Evaluation
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
choose(java.lang.String expr)
It evaluates a ternary expression with a boolean expression and two
single quoted strings and returns one of the strings with quotes as
the result upon success.
|
static java.lang.Number |
evaluate(java.lang.String expr)
It evaluates a numeric expression or a boolean expression and returns a
Number as the result up on success.
|
static boolean |
isStringExpression(java.lang.String expr)
returns true if expression is a ternary expression for quoted strings
|
static void |
main(java.lang.String[] args) |
static java.lang.String |
unquote(java.lang.String expr) |
public static java.lang.Number evaluate(java.lang.String expr)
public static java.lang.String choose(java.lang.String expr)
public static boolean isStringExpression(java.lang.String expr)
public static java.lang.String unquote(java.lang.String expr)
public static void main(java.lang.String[] args)