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
commands
private <T> List<MethodDescriptor<T>> commands(ClassDescriptor<T> descriptor,
Class<?> introspected)
throws IntrospectionException
-
- Throws:
IntrospectionException
create
public <T> CommandDescriptorImpl<T> create(Class<T> type)
throws IntrospectionException
-
- Throws:
IntrospectionException
create
private ParameterDescriptor create(Object 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)
-
create
private <T> MethodDescriptor<T> create(ClassDescriptor<T> owner,
Method m)
throws IntrospectionException
-
- Throws:
IntrospectionException
parameters
private List<ParameterDescriptor> parameters(Class<?> introspected)
throws IntrospectionException
-
- Throws:
IntrospectionException
Copyright © 2014 eXo Platform SAS. All Rights Reserved.