Package org.kohsuke.args4j.spi
Class AnnotationImpl
- java.lang.Object
-
- org.kohsuke.args4j.spi.AnnotationImpl
-
- All Implemented Interfaces:
Annotation
- Direct Known Subclasses:
ArgumentImpl
,OptionImpl
public abstract class AnnotationImpl extends Object implements Annotation
Base class for the @Option and @Argument implementation classes.- Author:
- Jan Materne
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AnnotationImpl(Class<? extends Annotation> annotationType)
protected
AnnotationImpl(Class<? extends Annotation> annotationType, ConfigElement ce)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
aliases()
Class<? extends Annotation>
annotationType()
Class<? extends OptionHandler>
handler()
boolean
help()
boolean
hidden()
int
index()
String
metaVar()
boolean
multiValued()
boolean
required()
String
usage()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.annotation.Annotation
equals, hashCode, toString
-
-
-
-
Field Detail
-
aliases
public String[] aliases
-
handler
public Class<? extends OptionHandler> handler
-
metaVar
public String metaVar
-
multiValued
public boolean multiValued
-
required
public boolean required
-
help
public boolean help
-
hidden
public boolean hidden
-
usage
public String usage
-
index
public int index
-
-
Constructor Detail
-
AnnotationImpl
protected AnnotationImpl(Class<? extends Annotation> annotationType)
-
AnnotationImpl
protected AnnotationImpl(Class<? extends Annotation> annotationType, ConfigElement ce) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
-
Method Detail
-
aliases
public String[] aliases()
-
handler
public Class<? extends OptionHandler> handler()
-
metaVar
public String metaVar()
-
multiValued
public boolean multiValued()
-
required
public boolean required()
-
help
public boolean help()
-
hidden
public boolean hidden()
-
usage
public String usage()
-
annotationType
public Class<? extends Annotation> annotationType()
- Specified by:
annotationType
in interfaceAnnotation
-
index
public int index()
-
-