Class Compound
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.common.Compound
-
- net.ssehub.easy.instantiation.core.model.templateModel.Compound
-
- All Implemented Interfaces:
ILanguageElement,ITemplateLangElement
public class Compound extends Compound implements ITemplateLangElement
Implements a compound type declaration for VIL.- Author:
- Holger Eichelberger
-
-
Constructor Summary
Constructors Constructor Description Compound(CompoundTypeDescriptor type, Template parent)Creates a compound.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectaccept(IVisitor visitor)Accepts the visitor for visiting.TemplategetParent()Returns the parent element.-
Methods inherited from class net.ssehub.easy.instantiation.core.model.common.Compound
accept, getName, getRefines, getSlot, getSlotsCount, getType, isAbstract
-
-
-
-
Field Detail
-
parent
private Template parent
-
-
Constructor Detail
-
Compound
public Compound(CompoundTypeDescriptor type, Template parent)
Creates a compound.- Parameters:
type- the type of the compoundparent- the parent template
-
-
Method Detail
-
getParent
public Template getParent()
Description copied from interface:ILanguageElementReturns the parent element.- Specified by:
getParentin interfaceILanguageElement- Returns:
- the parent element (may be null if unknown)
-
accept
public java.lang.Object accept(IVisitor visitor) throws VilException
Description copied from interface:ITemplateLangElementAccepts the visitor for visiting.- Specified by:
acceptin interfaceITemplateLangElement- Parameters:
visitor- the visitor to be used- Returns:
- the result of visiting this instance (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
-