public class VilExpressionParser extends AbstractModelInitializer<Script> implements IExpressionParser<Resolver>
| Constructor and Description |
|---|
VilExpressionParser() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context)
Private method to activate plugin.
|
protected void |
deactivate(org.osgi.service.component.ComponentContext context)
Private method to to de-activate plugin.
|
protected IModelLoader<Script> |
getModelLoader()
Returns the actual model loader.
|
ModelManagement<Script> |
getModelManagement()
Returns the actual model management instance.
|
Expression |
parse(java.lang.String text,
IRuntimeEnvironment environment)
Parses the given text into an expression.
|
Expression |
parse(java.lang.String text,
Resolver resolver)
Parses the given text into an expression.
|
static VilExpressionParser |
register()
Registers the expression parser in case that VIL shall be used without Eclipse-DS initialization.
|
static void |
unregister(VilExpressionParser parser)
Unregisters the parser obtained from
register(). |
addLocation, addLocationToFront, registerLoader, removeLocation, stripFile, unregisterLoaderpublic static VilExpressionParser register()
unregister(VilExpressionParser))public static void unregister(VilExpressionParser parser)
register().parser - the parser to unregisterprotected void activate(org.osgi.service.component.ComponentContext context)
context - Context.protected void deactivate(org.osgi.service.component.ComponentContext context)
context - Context.public Expression parse(java.lang.String text, IRuntimeEnvironment environment) throws VilException
IExpressionParserparse in interface IExpressionParser<Resolver>text - the text to be parsedenvironment - the runtime environment used to resolve variablesVilException - in case of parse problemspublic Expression parse(java.lang.String text, Resolver resolver) throws VilException
IExpressionParserparse in interface IExpressionParser<Resolver>text - the text to be parsedresolver - a resolver instance providing a parse environment consisting of variablesVilException - in case of parse problemspublic ModelManagement<Script> getModelManagement()
AbstractModelInitializergetModelManagement in class AbstractModelInitializer<Script>protected IModelLoader<Script> getModelLoader()
AbstractModelInitializergetModelLoader in class AbstractModelInitializer<Script>Copyright © 2009 - 2018 SSE. All Rights Reserved.