Class OverloadedCmdMethod

  • All Implemented Interfaces:
    Cmd, Completer

    public class OverloadedCmdMethod
    extends java.lang.Object
    implements Cmd
    • Constructor Summary

      Constructors 
      Constructor Description
      OverloadedCmdMethod​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(CmdMethod cmd)  
      java.util.Collection<java.lang.String> complete​(java.lang.String buffer, int cursorPosition)  
      java.lang.Object exec​(java.util.Map<java.lang.Class<?>,​InternalInterceptor> globalInterceptors, java.lang.String... rawArgs)  
      java.util.Set<CmdMethod> getMethods()  
      java.lang.String getName()  
      java.lang.String getUsage()  
      void help​(java.io.PrintStream out)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.tomitribe.crest.cmds.Cmd

        manual
    • Constructor Detail

      • OverloadedCmdMethod

        public OverloadedCmdMethod​(java.lang.String name)
    • Method Detail

      • getMethods

        public java.util.Set<CmdMethod> getMethods()
      • getUsage

        public java.lang.String getUsage()
        Specified by:
        getUsage in interface Cmd
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Cmd
      • exec

        public java.lang.Object exec​(java.util.Map<java.lang.Class<?>,​InternalInterceptor> globalInterceptors,
                                     java.lang.String... rawArgs)
        Specified by:
        exec in interface Cmd
      • help

        public void help​(java.io.PrintStream out)
        Specified by:
        help in interface Cmd
      • complete

        public java.util.Collection<java.lang.String> complete​(java.lang.String buffer,
                                                               int cursorPosition)
        Specified by:
        complete in interface Completer