org.crsh.cli.impl.lang
Class CommandFactory
java.lang.Object
org.crsh.cli.impl.lang.CommandFactory
-
public class CommandFactory
- extends Object
-
- Author:
Nested Class Summary |
protected static class |
CommandFactory.Tuple
Jus grouping some data for conveniency |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT
public static final CommandFactory DEFAULT
-
.
log
private static final Logger log
-
.
valueTypeFactory
protected final ValueTypeFactory valueTypeFactory
-
.
CommandFactory
public CommandFactory()
CommandFactory
public CommandFactory(ClassLoader loader)
throws NullPointerException
-
- Throws:
NullPointerException
CommandFactory
public CommandFactory(ValueTypeFactory valueTypeFactory)
throws NullPointerException
-
- Throws:
NullPointerException
findAllMethods
private List<Method> findAllMethods(Class<?> introspected)
throws IntrospectionException
-
- Throws:
IntrospectionException
create
public <T> ObjectCommandDescriptor<T> create(Class<T> type)
throws IntrospectionException
-
- Throws:
IntrospectionException
create
private <T> MethodDescriptor<T> create(ClassDescriptor<T> classDescriptor,
String name,
Method method)
throws IntrospectionException
-
- Throws:
IntrospectionException
create
private ParameterDescriptor create(Binding binding,
Type type,
Argument argumentAnn,
Option optionAnn,
boolean required,
Description info,
Annotation ann)
throws IntrospectionException
-
- Throws:
IntrospectionException
get
private static CommandFactory.Tuple get(Annotation... ab)
-
parameters
private List<ParameterDescriptor> parameters(Class<?> introspected)
throws IntrospectionException
-
- Throws:
IntrospectionException
Copyright © 2015 eXo Platform SAS. All Rights Reserved.