Class RuleInfo<D extends org.eclipse.emf.ecore.EObject,R extends net.ssehub.easy.instantiation.core.model.buildlangModel.Rule>

java.lang.Object
de.uni_hildesheim.sse.buildLanguageTranslation.RuleInfo<D,R>
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 net.ssehub.easy.instantiation.core.model.buildlangModel.Rule> extends Object
Stores (temporary) information about the relation of an ECore and an Rule model instance.
Author:
Holger Eichelberger
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private net.ssehub.easy.instantiation.core.model.buildlangModel.RuleDescriptor
     
    private R
     
    private D
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RuleInfo(D ruleDecl, R rule, net.ssehub.easy.instantiation.core.model.buildlangModel.RuleDescriptor descriptor)
    Creates an information object.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the related VIL rule model instance.
    Returns the VTL rule declaration from ECore.
    void
    registerVariables(net.ssehub.easy.instantiation.core.model.buildlangModel.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 Details

    • ruleDecl

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

      private R extends net.ssehub.easy.instantiation.core.model.buildlangModel.Rule rule
    • descriptor

      private net.ssehub.easy.instantiation.core.model.buildlangModel.RuleDescriptor descriptor
  • Constructor Details

    • RuleInfo

      public RuleInfo(D ruleDecl, R rule, net.ssehub.easy.instantiation.core.model.buildlangModel.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 Details

    • 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
    • registerVariables

      public void registerVariables(net.ssehub.easy.instantiation.core.model.buildlangModel.Resolver resolver) throws net.ssehub.easy.instantiation.core.model.common.VilException
      Registers the LHS/RHS variables in resolver if applicable.
      Parameters:
      resolver - the resolver instance
      Throws:
      net.ssehub.easy.instantiation.core.model.common.VilException - in case that resolving one of the expressions fails
      See Also:
      • RuleDescriptor.registerVariables(Resolver)