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 typeR- 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRule()Returns the related VIL rule model instance.Returns the VTL rule declaration from ECore.voidregisterVariables(net.ssehub.easy.instantiation.core.model.buildlangModel.Resolver resolver) Registers the LHS/RHS variables inresolverif applicable.
-
Field Details
-
ruleDecl
-
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 ECorerule- the related rule model instancedescriptor- the descriptor used to build uprulefor registering the variables lateron
-
-
Method Details
-
getRuleDeclaration
Returns the VTL rule declaration from ECore.- Returns:
- the VTL rule declaration
-
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 inresolverif 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:
-