|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.pnpconsult.zeiterfassung.util.SimpleExpressionParser
Parses simple mathematical expressions from Strings into doubles.
Following expressions are valid:
["-"]param1[ "+"|"-"|"*"|"/" ["-"]param2["%"]]
Where param1 and param2 are numbers of the usual
pattern: #.##0,00 (Localedependent). They are parsed using
DecimalFormat.
| Method Summary | |
static double |
parse(java.lang.String expression)
Parses the given expression and returns the result as double. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static double parse(java.lang.String expression)
throws java.text.ParseException
expression - A valid expression.
java.text.ParseException - If the expression could not be parsed.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||