Class RuleInfo<D extends org.eclipse.emf.ecore.EObject,R extends 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 Rule> extends java.lang.ObjectStores (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 RuleDescriptordescriptorprivate Rruleprivate DruleDecl
-
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 RgetRule()Returns the related VIL rule model instance.DgetRuleDeclaration()Returns the VTL rule declaration from ECore.voidregisterVariables(Resolver resolver)Registers the LHS/RHS variables inresolverif applicable.
-
-
-
Field Detail
-
ruleDecl
private D extends org.eclipse.emf.ecore.EObject ruleDecl
-
descriptor
private RuleDescriptor descriptor
-
-
Constructor Detail
-
RuleInfo
public RuleInfo(D ruleDecl, R rule, 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 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
-
registerVariables
public void registerVariables(Resolver resolver) throws VilException
Registers the LHS/RHS variables inresolverif applicable.- Parameters:
resolver- the resolver instance- Throws:
VilException- in case that resolving one of the expressions fails- See Also:
RuleDescriptor.registerVariables(Resolver)
-
-