|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crsh.cmdline.SimpleValueType<T>
public abstract class SimpleValueType<T>
Field Summary | |
---|---|
static SimpleValueType<Boolean> |
BOOLEAN
. |
private Class<? extends Completer> |
completer
. |
static SimpleValueType<Enum> |
ENUM
. |
static SimpleValueType<Integer> |
INTEGER
. |
private Class<T> |
javaType
. |
static SimpleValueType<String> |
STRING
. |
private static SimpleValueType<?>[] |
types
. |
static SimpleValueType<Value> |
VALUE
. |
Constructor Summary | |
---|---|
private |
SimpleValueType(Class<T> javaType,
Class<? extends Completer> completer)
|
Method Summary | ||
---|---|---|
static SimpleValueType<?> |
get(Class<?> clazz)
|
|
Class<? extends Completer> |
getCompleter()
|
|
Class<T> |
getJavaType()
|
|
int |
getRelativeDegree(Class<?> clazz)
|
|
abstract
|
parse(Class<S> type,
String s)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SimpleValueType<String> STRING
public static final SimpleValueType<Integer> INTEGER
public static final SimpleValueType<Boolean> BOOLEAN
public static final SimpleValueType<Enum> ENUM
public static final SimpleValueType<Value> VALUE
private static final SimpleValueType<?>[] types
private final Class<T> javaType
private final Class<? extends Completer> completer
Constructor Detail |
---|
private SimpleValueType(Class<T> javaType, Class<? extends Completer> completer)
Method Detail |
---|
public static SimpleValueType<?> get(Class<?> clazz)
public int getRelativeDegree(Class<?> clazz)
public Class<? extends Completer> getCompleter()
public Class<T> getJavaType()
public abstract <S extends T> T parse(Class<S> type, String s) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |