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
Implements a default datatype visitor for IVML.
- Author:
- Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final IvmlDatatypeVisitorgetInstance(QualifiedNameMode mode) Obtains an instance.static final StringgetQualifiedType(IDatatype type) Returns the textual representation of the given type based on the qualified name using an instance of this class.static final StringgetType(IDatatype type, QualifiedNameMode mode) Returns the textual representation of the given type using an instance of this class.static final StringgetUniqueType(IDatatype type) Returns the textual representation of the given type based on the unique name using an instance of this class.static final StringgetUnqualifiedType(IDatatype type) Returns the textual representation of the given type based on the unqualified name using an instance of this class.static final 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 Details
-
INSTANCES
-
-
Constructor Details
-
IvmlDatatypeVisitor
IvmlDatatypeVisitor()Constructs a default visitor.
-
-
Method Details
-
getInstance
Obtains an instance. Must be released usingrelease(IvmlDatatypeVisitor).- Parameters:
mode- the name mode- Returns:
- the default visitor
-
release
Releases (and clears) a given visitor.- Parameters:
visitor- the visitor being released
-
getType
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
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
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
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
-