Class ParameterConsumerMetaData

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.lang.model.type.TypeMirror typeMirror  
    • Constructor Summary

      Constructors 
      Constructor Description
      ParameterConsumerMetaData​(javax.lang.model.type.TypeMirror typeMirror)  
    • Field Detail

      • typeMirror

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

      • ParameterConsumerMetaData

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

      • extract

        public static ParameterConsumerMetaData extract​(javax.lang.model.element.Element element)
        Returns the type converters from the annotations present on the specified element.
        Parameters:
        element - the method or field annotated with @Option or @Parameters
        Returns:
        the type converters or an empty array if not found
      • isDefault

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

        public javax.lang.model.type.TypeMirror getTypeMirror()
        Returns the TypeMirror that this TypeConverterMetaData was constructed with.
        Specified by:
        getTypeMirror in interface ITypeMetaData
        Returns:
        the TypeMirror of the @Command(typeConverter = 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
      • 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