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 Details

  • Constructor Details

    • IvmlDatatypeVisitor

      IvmlDatatypeVisitor()
      Constructs a default visitor.
  • Method Details

    • getInstance

      public static final IvmlDatatypeVisitor getInstance(QualifiedNameMode mode)
      Obtains an instance. Must be released using release(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 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 represented
      mode - the name mode
      Returns:
      the textual representation
    • getUniqueType

      public static final 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 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 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