Class TypeDef
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.common.Typedef
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.TypeDef
-
- All Implemented Interfaces:
IBuildlangElement,ILanguageElement
public class TypeDef extends Typedef implements IBuildlangElement
A specific typedef version for VIL.- Author:
- Holger Eichelberger
-
-
Constructor Summary
Constructors Constructor Description TypeDef(java.lang.String name, TypeDescriptor<?> type, Script 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.ScriptgetParent()Returns the parent element.
-
-
-
Field Detail
-
parent
private Script parent
-
-
Constructor Detail
-
TypeDef
public TypeDef(java.lang.String name, TypeDescriptor<?> type, Script parent) throws VilExceptionCreates a typedef.- Parameters:
name- the alias nametype- the type to be used fornameparent- the parent script- 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:IBuildlangElementAccepts the visitor for visiting.- Specified by:
acceptin interfaceIBuildlangElement- 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 Script getParent()
Description copied from interface:ILanguageElementReturns the parent element.- Specified by:
getParentin interfaceILanguageElement- Returns:
- the parent element (may be null if unknown)
-
-