| Constructor and Description |
|---|
CmdDesc() |
CmdDesc(boolean valid) |
CmdDesc(List<org.jline.utils.AttributedString> mainDesc,
List<Widgets.ArgDesc> argsDesc,
Map<String,List<org.jline.utils.AttributedString>> optsDesc) |
CmdDesc(List<Widgets.ArgDesc> argsDesc) |
CmdDesc(List<Widgets.ArgDesc> argsDesc,
Map<String,List<org.jline.utils.AttributedString>> optsDesc) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Widgets.ArgDesc> |
getArgsDesc() |
int |
getErrorIndex() |
Pattern |
getErrorPattern() |
protected List<org.jline.utils.AttributedString> |
getMainDescription(int descriptionSize) |
protected List<org.jline.utils.AttributedString> |
getMainDescription(int descriptionSize,
String lastArg) |
protected List<org.jline.utils.AttributedString> |
getOptionDescription(String opt,
int descriptionSize) |
protected boolean |
isCommand() |
protected boolean |
isSubcommand() |
protected boolean |
isValid() |
Widgets.CmdDesc |
mainDesc(List<org.jline.utils.AttributedString> mainDesc) |
protected boolean |
optionWithValue(String option) |
void |
setErrorIndex(int errorIndex) |
void |
setErrorPattern(Pattern errorPattern) |
void |
setMainDesc(List<org.jline.utils.AttributedString> mainDesc) |
void |
setSubcommand(boolean subcommand) |
public CmdDesc()
public CmdDesc(boolean valid)
public CmdDesc(List<Widgets.ArgDesc> argsDesc)
public CmdDesc(List<Widgets.ArgDesc> argsDesc, Map<String,List<org.jline.utils.AttributedString>> optsDesc)
protected boolean isValid()
protected boolean isCommand()
public void setSubcommand(boolean subcommand)
protected boolean isSubcommand()
public Widgets.CmdDesc mainDesc(List<org.jline.utils.AttributedString> mainDesc)
public void setMainDesc(List<org.jline.utils.AttributedString> mainDesc)
public void setErrorPattern(Pattern errorPattern)
public Pattern getErrorPattern()
public void setErrorIndex(int errorIndex)
public int getErrorIndex()
protected List<Widgets.ArgDesc> getArgsDesc()
protected List<org.jline.utils.AttributedString> getMainDescription(int descriptionSize)
protected List<org.jline.utils.AttributedString> getMainDescription(int descriptionSize, String lastArg)
protected List<org.jline.utils.AttributedString> getOptionDescription(String opt, int descriptionSize)
protected boolean optionWithValue(String option)
Copyright © 2020. All rights reserved.