|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crsh.cmdline.ParameterDescriptor<B>
public abstract class ParameterDescriptor<B extends TypeBinding>
Field Summary | |
---|---|
private Annotation |
annotation
The annotation when it exists. |
private B |
binding
. |
private Class<? extends Completer> |
completerType
. |
private Description |
description
. |
private Type |
javaType
. |
private Class<?> |
javaValueType
. |
private Multiplicity |
multiplicity
. |
(package private) CommandDescriptor<?,B> |
owner
. |
private boolean |
password
. |
private boolean |
required
. |
private SimpleValueType |
type
. |
private boolean |
unquote
. |
Constructor Summary | |
---|---|
ParameterDescriptor(B binding,
Type javaType,
Description description,
boolean required,
boolean password,
boolean unquote,
Class<? extends Completer> completerType,
Annotation annotation)
|
Method Summary | |
---|---|
Annotation |
getAnnotation()
|
B |
getBinding()
|
Class<? extends Completer> |
getCompleterType()
|
Description |
getDescription()
|
Type |
getJavaType()
|
Class<?> |
getJavaValueType()
|
Multiplicity |
getMultiplicity()
|
CommandDescriptor<?,B> |
getOwner()
|
SimpleValueType |
getType()
|
String |
getUsage()
|
boolean |
isMultiValued()
|
boolean |
isPassword()
|
boolean |
isRequired()
|
boolean |
isSingleValued()
|
boolean |
isUnquote()
|
abstract Object |
parse(List<String> values)
|
Object |
parse(String s)
|
abstract void |
printUsage(Appendable writer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final B extends TypeBinding binding
private final Description description
private final SimpleValueType type
private final Multiplicity multiplicity
private final boolean required
private final boolean password
private final Type javaType
private final Class<?> javaValueType
private final Class<? extends Completer> completerType
private final Annotation annotation
private final boolean unquote
CommandDescriptor<?,B extends TypeBinding> owner
Constructor Detail |
---|
public ParameterDescriptor(B binding, Type javaType, Description description, boolean required, boolean password, boolean unquote, Class<? extends Completer> completerType, Annotation annotation) throws IllegalValueTypeException, IllegalParameterException
IllegalValueTypeException
IllegalParameterException
Method Detail |
---|
public Object parse(String s) throws Exception
Exception
public abstract Object parse(List<String> values) throws CmdSyntaxException
CmdSyntaxException
public CommandDescriptor<?,B> getOwner()
public Type getJavaType()
public Class<?> getJavaValueType()
public final B getBinding()
public final String getUsage()
public Description getDescription()
public Annotation getAnnotation()
public final boolean isRequired()
public boolean isUnquote()
public final boolean isPassword()
public final SimpleValueType getType()
public final Multiplicity getMultiplicity()
public final boolean isSingleValued()
public final boolean isMultiValued()
public final Class<? extends Completer> getCompleterType()
public abstract void printUsage(Appendable writer) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |