Package org.jline.console
Class CmdDesc
java.lang.Object
org.jline.console.CmdDesc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
boolean
boolean
isValid()
mainDesc
(List<AttributedString> mainDesc) 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 Details
-
CmdDesc
public CmdDesc() -
CmdDesc
public CmdDesc(boolean valid) -
CmdDesc
-
CmdDesc
-
CmdDesc
public CmdDesc(List<AttributedString> mainDesc, List<ArgDesc> argsDesc, Map<String, List<AttributedString>> optsDesc)
-
-
Method Details
-
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
-
setMainDesc
-
getMainDesc
-
getOptsDesc
-
setErrorPattern
-
getErrorPattern
-
setErrorIndex
public void setErrorIndex(int errorIndex) -
getErrorIndex
public int getErrorIndex() -
getArgsDesc
-
optionWithValue
-
optionDescription
-