Package net.ssehub.easy.varModel.model
Class IvmlDatatypeVisitor
- java.lang.Object
-
- net.ssehub.easy.varModel.model.datatypes.DatatypeVisitor
-
- net.ssehub.easy.varModel.model.IvmlDatatypeVisitor
-
- All Implemented Interfaces:
IDatatypeVisitor
public class IvmlDatatypeVisitor extends DatatypeVisitor
Implements a default datatype visitor for IVML.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<IvmlDatatypeVisitor>INSTANCES
-
Constructor Summary
Constructors Constructor Description IvmlDatatypeVisitor()Constructs a default visitor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IvmlDatatypeVisitorgetInstance(QualifiedNameMode mode)Obtains an instance.static java.lang.StringgetQualifiedType(IDatatype type)Returns the textual representation of the given type based on the qualified name using an instance of this class.static java.lang.StringgetType(IDatatype type, QualifiedNameMode mode)Returns the textual representation of the given type using an instance of this class.static java.lang.StringgetUniqueType(IDatatype type)Returns the textual representation of the given type based on the unique name using an instance of this class.static java.lang.StringgetUnqualifiedType(IDatatype type)Returns the textual representation of the given type based on the unqualified name using an instance of this class.static voidrelease(IvmlDatatypeVisitor visitor)Releases (and clears) a given visitor.-
Methods inherited from class net.ssehub.easy.varModel.model.datatypes.DatatypeVisitor
append, clear, constructReferenceName, constructSurrounded, getQualifiedNameMode, getResult, getType, setQualifiedNameMode, visitAnyType, visitBooleanType, visitCompoundType, visitConstraintType, visitDatatype, visitDerivedType, visitEnumType, visitIntegerType, visitMetaType, visitOrderedEnumType, visitRealType, visitReference, visitSequence, visitSet, visitStringType, visitVersionType
-
-
-
-
Field Detail
-
INSTANCES
private static final java.util.List<IvmlDatatypeVisitor> INSTANCES
-
-
Method Detail
-
getInstance
public static final IvmlDatatypeVisitor getInstance(QualifiedNameMode mode)
Obtains an instance. Must be released usingrelease(IvmlDatatypeVisitor).- Parameters:
mode- the name mode- Returns:
- the default visitor
-
release
public static final void release(IvmlDatatypeVisitor visitor)
Releases (and clears) a given visitor.- Parameters:
visitor- the visitor being released
-
getType
public static final java.lang.String getType(IDatatype type, QualifiedNameMode mode)
Returns the textual representation of the given type using an instance of this class. (convenience)- Parameters:
type- the type to be representedmode- the name mode- Returns:
- the textual representation
-
getUniqueType
public static final java.lang.String getUniqueType(IDatatype type)
Returns the textual representation of the given type based on the unique name using an instance of this class. (convenience)- Parameters:
type- the type to be represented- Returns:
- the textual representation
-
getQualifiedType
public static final java.lang.String getQualifiedType(IDatatype type)
Returns the textual representation of the given type based on the qualified name using an instance of this class. (convenience)- Parameters:
type- the type to be represented- Returns:
- the textual representation
-
getUnqualifiedType
public static final java.lang.String getUnqualifiedType(IDatatype type)
Returns the textual representation of the given type based on the unqualified name using an instance of this class. (convenience)- Parameters:
type- the type to be represented- Returns:
- the textual representation
-
-