Class AnnotatedElementHolder

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.lang.model.element.Element element  
    • Constructor Summary

      Constructors 
      Constructor Description
      AnnotatedElementHolder​(javax.lang.model.element.Element element)
      Constructs a new AnnotatedElementHolder with the specified element
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T get()
      This implementation does nothing and always returns null.
      javax.lang.model.element.Element getElement()
      Returns the program element annotated with @Option or @Parameters.
      <T> T set​(T value)
      This implementation does nothing.
      java.lang.String toString()
      Returns a string representation of this binding, for debugging purposes.
      • Methods inherited from class java.lang.Object

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

      • element

        private final javax.lang.model.element.Element element
    • Constructor Detail

      • AnnotatedElementHolder

        public AnnotatedElementHolder​(javax.lang.model.element.Element element)
        Constructs a new AnnotatedElementHolder with the specified element
        Parameters:
        element - the program element annotated with @Option or @Parameters
    • Method Detail

      • getElement

        public javax.lang.model.element.Element getElement()
        Returns the program element annotated with @Option or @Parameters.
        Returns:
        the program element for an ArgSpec.
      • get

        public <T> T get()
        This implementation does nothing and always returns null.
        Specified by:
        get in interface CommandLine.Model.IGetter
        Type Parameters:
        T - ignored
        Returns:
        null always
      • set

        public <T> T set​(T value)
        This implementation does nothing.
        Specified by:
        set in interface CommandLine.Model.ISetter
        Type Parameters:
        T - ignored
        Parameters:
        value - the new value of the option or positional parameter. Ignored.
        Returns:
        null always
      • toString

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