Class Typedef
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.common.Typedef
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringnameprivate TypeDescriptor<?>type
-
Constructor Summary
Constructors Constructor Description Typedef(java.lang.String name, TypeDescriptor<?> type)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.java.lang.StringgetName()Returns the alias name.TypeDescriptor<?>getType()Returns the represented type.
-
-
-
Field Detail
-
name
private java.lang.String name
-
type
private TypeDescriptor<?> type
-
-
Constructor Detail
-
Typedef
public Typedef(java.lang.String name, TypeDescriptor<?> type) throws VilExceptionCreates a typedef.- Parameters:
name- the alias nametype- the type to be used forname- Throws:
VilException- if one of the arguments is invalid
-
-
Method Detail
-
accept
public java.lang.Object accept(IVisitor visitor) throws VilException
Accepts the visitor for visiting.- 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)
-
getName
public java.lang.String getName()
Returns the alias name.- Returns:
- the alias name
-
getType
public TypeDescriptor<?> getType()
Returns the represented type.- Returns:
- the represented type
-
-