Class VtlExpressionParser

java.lang.Object
net.ssehub.easy.basics.modelManagement.AbstractModelInitializer<net.ssehub.easy.instantiation.core.model.templateModel.Template>
de.uni_hildesheim.sse.vil.templatelang.VtlExpressionParser
All Implemented Interfaces:
net.ssehub.easy.basics.modelManagement.ModelInitializer.IModelInitializer, net.ssehub.easy.instantiation.core.model.expressions.IExpressionParser<net.ssehub.easy.instantiation.core.model.templateModel.Resolver>

public class VtlExpressionParser extends net.ssehub.easy.basics.modelManagement.AbstractModelInitializer<net.ssehub.easy.instantiation.core.model.templateModel.Template> implements net.ssehub.easy.instantiation.core.model.expressions.IExpressionParser<net.ssehub.easy.instantiation.core.model.templateModel.Resolver>
Provides an expression parser for VTL.
Author:
Holger Eichelberger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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 net.ssehub.easy.basics.modelManagement.IModelLoader<net.ssehub.easy.instantiation.core.model.templateModel.Template>
     
    protected net.ssehub.easy.basics.modelManagement.ModelManagement<net.ssehub.easy.instantiation.core.model.templateModel.Template>
     
    net.ssehub.easy.instantiation.core.model.expressions.Expression
    parse(String text, net.ssehub.easy.instantiation.core.model.expressions.IRuntimeEnvironment environment)
     
    net.ssehub.easy.instantiation.core.model.expressions.Expression
    parse(String text, net.ssehub.easy.instantiation.core.model.templateModel.Resolver resolver)
     
    Registers the expression parser in case that VTL shall be used without Eclipse-DS initialization.
    static void
    Unregisters the parser obtained from register().

    Methods inherited from class net.ssehub.easy.basics.modelManagement.AbstractModelInitializer

    addLocation, addLocationToFront, registerLoader, removeLocation, stripFile, unregisterLoader

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VtlExpressionParser

      public VtlExpressionParser()
  • Method Details

    • register

      public static VtlExpressionParser register()
      Registers the expression parser in case that VTL shall be used without Eclipse-DS initialization. Do not call this method within Eclipse.
      Returns:
      the registered instance (for unregister(VtlExpressionParser))
    • unregister

      public static void unregister(VtlExpressionParser parser)
      Unregisters the parser obtained from register().
      Parameters:
      parser - the parser to unregister
    • activate

      protected void activate(org.osgi.service.component.ComponentContext context)
      Private method to activate plugin.
      Parameters:
      context - Context.
    • deactivate

      protected void deactivate(org.osgi.service.component.ComponentContext context)
      Private method to to de-activate plugin.
      Parameters:
      context - Context.
    • parse

      public net.ssehub.easy.instantiation.core.model.expressions.Expression parse(String text, net.ssehub.easy.instantiation.core.model.expressions.IRuntimeEnvironment environment) throws net.ssehub.easy.instantiation.core.model.common.VilException
      Specified by:
      parse in interface net.ssehub.easy.instantiation.core.model.expressions.IExpressionParser<net.ssehub.easy.instantiation.core.model.templateModel.Resolver>
      Throws:
      net.ssehub.easy.instantiation.core.model.common.VilException
    • parse

      public net.ssehub.easy.instantiation.core.model.expressions.Expression parse(String text, net.ssehub.easy.instantiation.core.model.templateModel.Resolver resolver) throws net.ssehub.easy.instantiation.core.model.common.VilException
      Specified by:
      parse in interface net.ssehub.easy.instantiation.core.model.expressions.IExpressionParser<net.ssehub.easy.instantiation.core.model.templateModel.Resolver>
      Throws:
      net.ssehub.easy.instantiation.core.model.common.VilException
    • getModelManagement

      protected net.ssehub.easy.basics.modelManagement.ModelManagement<net.ssehub.easy.instantiation.core.model.templateModel.Template> getModelManagement()
      Specified by:
      getModelManagement in class net.ssehub.easy.basics.modelManagement.AbstractModelInitializer<net.ssehub.easy.instantiation.core.model.templateModel.Template>
    • getModelLoader

      protected net.ssehub.easy.basics.modelManagement.IModelLoader<net.ssehub.easy.instantiation.core.model.templateModel.Template> getModelLoader()
      Specified by:
      getModelLoader in class net.ssehub.easy.basics.modelManagement.AbstractModelInitializer<net.ssehub.easy.instantiation.core.model.templateModel.Template>