public class CmdDesc extends Object
| Constructor and Description |
|---|
CmdDesc() |
CmdDesc(boolean valid) |
CmdDesc(List<ArgDesc> argsDesc) |
CmdDesc(List<ArgDesc> argsDesc,
Map<String,List<org.jline.utils.AttributedString>> optsDesc) |
CmdDesc(List<org.jline.utils.AttributedString> mainDesc,
List<ArgDesc> argsDesc,
Map<String,List<org.jline.utils.AttributedString>> optsDesc) |
| Modifier and Type | Method and Description |
|---|---|
List<ArgDesc> |
getArgsDesc() |
int |
getErrorIndex() |
Pattern |
getErrorPattern() |
List<org.jline.utils.AttributedString> |
getMainDesc() |
TreeMap<String,List<org.jline.utils.AttributedString>> |
getOptsDesc() |
boolean |
isCommand() |
boolean |
isHighlighted() |
boolean |
isSubcommand() |
boolean |
isValid() |
CmdDesc |
mainDesc(List<org.jline.utils.AttributedString> mainDesc) |
org.jline.utils.AttributedString |
optionDescription(String key) |
boolean |
optionWithValue(String option) |
void |
setErrorIndex(int errorIndex) |
void |
setErrorPattern(Pattern errorPattern) |
void |
setHighlighted(boolean highlighted) |
void |
setMainDesc(List<org.jline.utils.AttributedString> mainDesc) |
void |
setSubcommand(boolean subcommand) |
public CmdDesc()
public CmdDesc(boolean valid)
public CmdDesc(List<ArgDesc> argsDesc, Map<String,List<org.jline.utils.AttributedString>> optsDesc)
public boolean isValid()
public boolean isCommand()
public void setSubcommand(boolean subcommand)
public boolean isSubcommand()
public void setHighlighted(boolean highlighted)
public boolean isHighlighted()
public void setMainDesc(List<org.jline.utils.AttributedString> mainDesc)
public List<org.jline.utils.AttributedString> getMainDesc()
public void setErrorPattern(Pattern errorPattern)
public Pattern getErrorPattern()
public void setErrorIndex(int errorIndex)
public int getErrorIndex()
public boolean optionWithValue(String option)
public org.jline.utils.AttributedString optionDescription(String key)
Copyright © 2020. All rights reserved.