Package org.crsh.cli.impl.invocation

Examples of org.crsh.cli.impl.invocation.ParameterMatch


    return getInvoker2(match, type);
  }

  static void bind(InvocationMatch<?> match, Iterable<ParameterDescriptor> parameters, Object target, Object[] args) throws SyntaxException, InvocationException {
    for (ParameterDescriptor parameter : parameters) {
      ParameterMatch parameterMatch = match.getParameter(parameter);
      Object value = parameterMatch != null ? parameterMatch.computeValue() : null;
      if (value == null) {
        if (parameter.getDeclaredType().isPrimitive() || parameter.isRequired()) {
          if (parameter instanceof ArgumentDescriptor) {
            ArgumentDescriptor argument = (ArgumentDescriptor)parameter;
            throw new SyntaxException("Missing argument " + argument.getName());
View Full Code Here

TOP

Related Classes of org.crsh.cli.impl.invocation.ParameterMatch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.