|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.util.expression.UtilExpression
public final class UtilExpression
Utility class for expressions.
| Method Summary | |
|---|---|
static String |
asExpression(String content)
Given a content, surround it with the expression mark. |
static Object |
evaluate(String text,
IContext context,
boolean silent)
Evaluates the text and returns an object. |
static String |
replace(String text,
IContext context,
boolean silent)
Replace placeholders in text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String asExpression(String content)
content - The content to become an expression.
public static Object evaluate(String text,
IContext context,
boolean silent)
throws PluginException
text - The text expression.context - A context.silent - To evaluate expressions silently.
PluginException - On evaluation errors.
public static String replace(String text,
IContext context,
boolean silent)
throws PluginException
text - The text to be replaced.context - A context.silent - To evaluate expressions silently.
PluginException - On replacing errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||