public abstract class AbstractJShellBuiltin extends Object implements JShellBuiltin
| Constructor and Description |
|---|
AbstractJShellBuiltin(String name,
int supportLevel) |
| Modifier and Type | Method and Description |
|---|---|
void |
autoComplete(JShellExecutionContext context,
net.thevpc.nuts.NutsCommandAutoComplete autoComplete) |
protected net.thevpc.nuts.NutsCommandLine |
cmdLine(String[] args,
JShellExecutionContext context) |
void |
exec(String[] args,
JShellExecutionContext context)
exec and return error code
|
protected abstract void |
execImpl(String[] args,
JShellExecutionContext context) |
String |
getHelp() |
String |
getHelpHeader() |
String |
getName() |
int |
getSupportLevel(net.thevpc.nuts.spi.NutsSupportLevelContext param) |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
protected void |
throwExecutionException(Object errObject,
int errorCode,
net.thevpc.nuts.NutsSession session) |
public AbstractJShellBuiltin(String name, int supportLevel)
protected net.thevpc.nuts.NutsCommandLine cmdLine(String[] args, JShellExecutionContext context)
public int getSupportLevel(net.thevpc.nuts.spi.NutsSupportLevelContext param)
getSupportLevel in interface net.thevpc.nuts.spi.NutsComponentpublic void autoComplete(JShellExecutionContext context, net.thevpc.nuts.NutsCommandAutoComplete autoComplete)
autoComplete in interface JShellBuiltinprotected abstract void execImpl(String[] args, JShellExecutionContext context)
public final void exec(String[] args, JShellExecutionContext context)
JShellBuiltinexec in interface JShellBuiltinargs - commandcontext - contextpublic String getHelp()
getHelp in interface JShellBuiltinpublic String getName()
getName in interface JShellBuiltinpublic boolean isEnabled()
isEnabled in interface JShellBuiltinpublic void setEnabled(boolean enabled)
setEnabled in interface JShellBuiltinpublic String getHelpHeader()
getHelpHeader in interface JShellBuiltinprotected void throwExecutionException(Object errObject, int errorCode, net.thevpc.nuts.NutsSession session)
Copyright © 2022 vpc open source initiative. All rights reserved.