public final class UtilExpression extends Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.Copyright © 2016. All rights reserved.