| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Eval |
|
| 1.0;1 |
| 1 | package org.webmacro.util; | |
| 2 | ||
| 3 | /** | |
| 4 | * Static class with one method, eval, which just returns its | |
| 5 | * argument. This is a workaround for a WebMacro syntax issue, where an | |
| 6 | * expression isn't recognized properly outside of a directive or method call. | |
| 7 | * The eval() function can be configured in the WebMacro.properties file, e.g.: | |
| 8 | * <pre> | |
| 9 | * functions.eval=org.webmacro.util.Eval.eval | |
| 10 | * </pre> | |
| 11 | * @since May 6, 2003 | |
| 12 | */ | |
| 13 | public final class Eval | |
| 14 | { | |
| 15 | ||
| 16 | /** Private constructor for a static class */ | |
| 17 | private Eval () | |
| 18 | 0 | { |
| 19 | 0 | } |
| 20 | ||
| 21 | /** | |
| 22 | * @param o object to return | |
| 23 | * @return input unmodified | |
| 24 | */ | |
| 25 | static public Object eval (Object o) | |
| 26 | { | |
| 27 | 0 | return o; |
| 28 | } | |
| 29 | } |