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