|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.util.UtilEvaluator
public final class UtilEvaluator
Utility class for expressions.
| Field Summary | |
|---|---|
static String |
END
End code delimiter. |
static char |
ESCAPE
Escape mark. |
static String |
START_CODE
Start code delimiter. |
static String |
START_DATA
Start code replacement. |
| 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 ids in text. |
static String |
replace(String text,
String name,
Object local)
Replace the same string which appear many times in text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final char ESCAPE
public static final String START_CODE
public static final String END
public static final String START_DATA
| 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.
public static String replace(String text,
String name,
Object local)
text - The text to be replaced.name - The name.local - The replacing value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||