Class DefaultAnnotationHandler

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()
      Returns the description of the specific handler
      java.lang.String[] getFileExtensions()
      Returns an array of known extensions for the output file type.
      java.lang.String getLanguageName()
      Returns the name of the C-like language that this handler supports
      java.lang.String getPrefix​(Composite c, DataTypeComponent dtc)
      Returns the prefix for type Composite
      java.lang.String getPrefix​(Enum e, java.lang.String member)
      Returns the prefix for type Enum
      java.lang.String getSuffix​(Composite c, DataTypeComponent dtc)
      Returns the suffix for type Composite
      java.lang.String getSuffix​(Enum e, java.lang.String member)
      Returns the suffix for type Enum
      java.lang.String toString()
      Returns a string description of this handler.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DefaultAnnotationHandler

        public DefaultAnnotationHandler()
    • Method Detail

      • getPrefix

        public java.lang.String getPrefix​(Enum e,
                                          java.lang.String member)
        Description copied from interface: AnnotationHandler
        Returns the prefix for type Enum
        Specified by:
        getPrefix in interface AnnotationHandler
        Parameters:
        e - the Enum datatype
        member - the name of the member of the Enum
        Returns:
        the prefix for type Enum
      • getSuffix

        public java.lang.String getSuffix​(Enum e,
                                          java.lang.String member)
        Description copied from interface: AnnotationHandler
        Returns the suffix for type Enum
        Specified by:
        getSuffix in interface AnnotationHandler
        Parameters:
        e - the Enum datatype
        member - the name of the member of the Enum
        Returns:
        the suffix for type Enum
      • getPrefix

        public java.lang.String getPrefix​(Composite c,
                                          DataTypeComponent dtc)
        Description copied from interface: AnnotationHandler
        Returns the prefix for type Composite
        Specified by:
        getPrefix in interface AnnotationHandler
        Parameters:
        c - the Composite datatype
        dtc - the name of the member of the Composite
        Returns:
        the prefix for type Composite
      • getSuffix

        public java.lang.String getSuffix​(Composite c,
                                          DataTypeComponent dtc)
        Description copied from interface: AnnotationHandler
        Returns the suffix for type Composite
        Specified by:
        getSuffix in interface AnnotationHandler
        Parameters:
        c - the Composite datatype
        dtc - the name of the member of the Composite
        Returns:
        the suffix for type Composite
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: AnnotationHandler
        Returns the description of the specific handler
        Specified by:
        getDescription in interface AnnotationHandler
        Returns:
        the description of the specific handler
      • getLanguageName

        public java.lang.String getLanguageName()
        Description copied from interface: AnnotationHandler
        Returns the name of the C-like language that this handler supports
        Specified by:
        getLanguageName in interface AnnotationHandler
        Returns:
        the name of the C-like language that this handler supports
      • getFileExtensions

        public java.lang.String[] getFileExtensions()
        Description copied from interface: AnnotationHandler
        Returns an array of known extensions for the output file type. If no extensions are preferred, the an empty array should be returned.
        Specified by:
        getFileExtensions in interface AnnotationHandler
        Returns:
        an array of known extensions for the output file type.
      • toString

        public java.lang.String toString()
        Description copied from interface: AnnotationHandler
        Returns a string description of this handler.
        Specified by:
        toString in interface AnnotationHandler
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string description of this handler