public class AnnotatedElementHolder
extends java.lang.Object
implements picocli.CommandLine.Model.IGetter, picocli.CommandLine.Model.ISetter
CommandLine.Model.IGetter and CommandLine.Model.ISetter interface that allows
custom CommandSpec annotation processors to inspect ArgSpec objects
to discover what program element was annotated with @Option or @Parameters.| Constructor and Description |
|---|
AnnotatedElementHolder(javax.lang.model.element.Element element)
Constructs a new
AnnotatedElementHolder with the specified element |
| Modifier and Type | Method and 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.
|
public AnnotatedElementHolder(javax.lang.model.element.Element element)
AnnotatedElementHolder with the specified elementelement - the program element annotated with @Option or @Parameterspublic javax.lang.model.element.Element getElement()
@Option or @Parameters.ArgSpec.public <T> T get()
null.get in interface picocli.CommandLine.Model.IGetterT - ignorednull alwayspublic <T> T set(T value)
set in interface picocli.CommandLine.Model.ISetterT - ignoredvalue - the new value of the option or positional parameter. Ignored.null alwayspublic java.lang.String toString()
toString in class java.lang.Object