Package org.springframework.shell.core.annotation

Examples of org.springframework.shell.core.annotation.CliOption.key()


        Class<?>[] parameterTypes = methodTarget.getMethod().getParameterTypes();
        for (int i = 0; i < parameterTypes.length; i++) {
          CliOption option = cliOptions.get(i);
          Class<?> parameterType = parameterTypes[i];

          for (String key : option.key()) {
            if (key.equals(lastOptionKey)) {
              List<Completion> allValues = new ArrayList<Completion>();
              // We'll append the closing delimiter to proposals
              String suffix = "" + tokenizer.getLastValueDelimiter();
              if (!suffix.endsWith(" ")) {
View Full Code Here


            CliOption cliOption = null;
            for (Annotation a : annotations) {
              if (a instanceof CliOption) {
                cliOption = (CliOption) a;

                for (String key : cliOption.key()) {
                  if ("".equals(key)) {
                    key = "** default **";
                  }
                  sb.append(" Keyword:                  ").append(key).append(OsUtils.LINE_SEPARATOR);
                }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.