Class AbstractDirective.AbstractSubCommand
java.lang.Object
net.thevpc.naru.impl.registry.builtindirectives.AbstractDirective.AbstractSubCommand
- All Implemented Interfaces:
AbstractDirective.SubCommand
- Enclosing class:
- AbstractDirective
public abstract class AbstractDirective.AbstractSubCommand
extends Object
implements AbstractDirective.SubCommand
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractSubCommand(String name, net.thevpc.nuts.text.NText description, AbstractDirective.SubCommandHelp... all) -
Method Summary
Modifier and TypeMethodDescriptionnet.thevpc.nuts.text.NTextvoidhelp(NaruDirectiveCallContext context) voidhelpOne(NaruDirectiveCallContext context, net.thevpc.nuts.text.NText syntax, net.thevpc.nuts.text.NText description) name()List<net.thevpc.nuts.cmdline.NArgCandidate>resolveCandidates(net.thevpc.nuts.cmdline.NCmdLine cmdLine, net.thevpc.nuts.cmdline.NCmdLineAutoCompleteResolver.Pos pos, NaruSession session) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.thevpc.naru.impl.registry.builtindirectives.AbstractDirective.SubCommand
execute
-
Constructor Details
-
AbstractSubCommand
-
AbstractSubCommand
public AbstractSubCommand(String name, net.thevpc.nuts.text.NText description, AbstractDirective.SubCommandHelp... all)
-
-
Method Details
-
description
public net.thevpc.nuts.text.NText description()- Specified by:
descriptionin interfaceAbstractDirective.SubCommand
-
name
- Specified by:
namein interfaceAbstractDirective.SubCommand
-
help
- Specified by:
helpin interfaceAbstractDirective.SubCommand
-
helpOne
public void helpOne(NaruDirectiveCallContext context, net.thevpc.nuts.text.NText syntax, net.thevpc.nuts.text.NText description) -
resolveCandidates
public List<net.thevpc.nuts.cmdline.NArgCandidate> resolveCandidates(net.thevpc.nuts.cmdline.NCmdLine cmdLine, net.thevpc.nuts.cmdline.NCmdLineAutoCompleteResolver.Pos pos, NaruSession session) - Specified by:
resolveCandidatesin interfaceAbstractDirective.SubCommand
-