- java.lang.Object
-
- org.jline.console.CmdDesc
-
public class CmdDesc extends Object
-
-
Constructor Summary
Constructors 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)
-
Method Summary
All Methods Instance Methods Concrete Methods 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)
-
-
-
Constructor Detail
-
CmdDesc
public CmdDesc()
-
CmdDesc
public CmdDesc(boolean valid)
-
CmdDesc
public CmdDesc(List<AttributedString> mainDesc, List<ArgDesc> argsDesc, Map<String,List<AttributedString>> optsDesc)
-
-
Method Detail
-
isValid
public boolean isValid()
-
isCommand
public boolean isCommand()
-
setSubcommand
public void setSubcommand(boolean subcommand)
-
isSubcommand
public boolean isSubcommand()
-
setHighlighted
public void setHighlighted(boolean highlighted)
-
isHighlighted
public boolean isHighlighted()
-
mainDesc
public CmdDesc mainDesc(List<AttributedString> mainDesc)
-
setMainDesc
public void setMainDesc(List<AttributedString> mainDesc)
-
getMainDesc
public List<AttributedString> getMainDesc()
-
getOptsDesc
public TreeMap<String,List<AttributedString>> getOptsDesc()
-
setErrorPattern
public void setErrorPattern(Pattern errorPattern)
-
getErrorPattern
public Pattern getErrorPattern()
-
setErrorIndex
public void setErrorIndex(int errorIndex)
-
getErrorIndex
public int getErrorIndex()
-
optionWithValue
public boolean optionWithValue(String option)
-
optionDescription
public AttributedString optionDescription(String key)
-
-