Class TypeDef
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.common.Typedef
-
- net.ssehub.easy.instantiation.core.model.templateModel.TypeDef
-
- All Implemented Interfaces:
ILanguageElement,ITemplateLangElement
public class TypeDef extends Typedef implements ITemplateLangElement
A specific typedef version for VTL.- Author:
- Holger Eichelberger
-
-
Constructor Summary
Constructors Constructor Description TypeDef(java.lang.String name, TypeDescriptor<?> type, Template parent)Creates a typedef.
-
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.
-
-
-
Field Detail
-
parent
private Template parent
-
-
Constructor Detail
-
TypeDef
public TypeDef(java.lang.String name, TypeDescriptor<?> type, Template parent) throws VilExceptionCreates a typedef.- Parameters:
name- the alias nametype- the type to be used fornameparent- the parent template- Throws:
VilException- if one of the arguments is invalid
-
-
Method Detail
-
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)
-
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)
-
-