Class VersionProviderMetaData

    • Field Detail

      • typeMirror

        private final javax.lang.model.type.TypeMirror typeMirror
    • Constructor Detail

      • VersionProviderMetaData

        public VersionProviderMetaData()
      • VersionProviderMetaData

        public VersionProviderMetaData​(javax.lang.model.type.TypeMirror typeMirror)
    • Method Detail

      • isDefault

        public boolean isDefault()
        Returns true if the command did not have a versionProvider annotation attribute.
        Specified by:
        isDefault in interface ITypeMetaData
        Returns:
        true if the command did not have a versionProvider annotation attribute.
      • getTypeMirror

        public javax.lang.model.type.TypeMirror getTypeMirror()
        Returns the TypeMirror that this VersionProviderMetaData was constructed with.
        Specified by:
        getTypeMirror in interface ITypeMetaData
        Returns:
        the TypeMirror of the @Command(versionProvider = xxx.class) annotation.
      • getTypeElement

        public javax.lang.model.element.TypeElement getTypeElement()
        Description copied from interface: ITypeMetaData
        Returns the TypeElement of the type mirror.
        Specified by:
        getTypeElement in interface ITypeMetaData
        Returns:
        the type mirror as a TypeElement
      • getVersion

        public java.lang.String[] getVersion()
        Always returns an empty array.
        Specified by:
        getVersion in interface CommandLine.IVersionProvider
        Returns:
        version information (each string in the array is displayed on a separate line)
      • toString

        public java.lang.String toString()
        Returns a string representation of this object, for debugging purposes.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of this object