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