Class RuleInfo<D extends org.eclipse.emf.ecore.EObject,​R extends Rule>

  • Type Parameters:
    D - the Ecore language declaration type
    R - the model rule type

    public class RuleInfo<D extends org.eclipse.emf.ecore.EObject,​R extends Rule>
    extends java.lang.Object
    Stores (temporary) information about the relation of an ECore and an Rule model instance.
    Author:
    Holger Eichelberger
    • Constructor Summary

      Constructors 
      Constructor Description
      RuleInfo​(D ruleDecl, R rule, RuleDescriptor descriptor)
      Creates an information object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      R getRule()
      Returns the related VIL rule model instance.
      D getRuleDeclaration()
      Returns the VTL rule declaration from ECore.
      void registerVariables​(Resolver resolver)
      Registers the LHS/RHS variables in resolver if applicable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ruleDecl

        private D extends org.eclipse.emf.ecore.EObject ruleDecl
      • rule

        private R extends Rule rule
    • Constructor Detail

      • RuleInfo

        public RuleInfo​(D ruleDecl,
                        R rule,
                        RuleDescriptor descriptor)
        Creates an information object.
        Parameters:
        ruleDecl - the VTL rule declaration from ECore
        rule - the related rule model instance
        descriptor - the descriptor used to build up rule for registering the variables lateron
    • Method Detail

      • getRuleDeclaration

        public D getRuleDeclaration()
        Returns the VTL rule declaration from ECore.
        Returns:
        the VTL rule declaration
      • getRule

        public R getRule()
        Returns the related VIL rule model instance.
        Returns:
        the rule instance