- java.lang.Object
-
- org.jline.console.impl.DescriptionAdapter
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArgDesctoArgDesc(org.jline.shell.ArgumentDescription arg)Converts a newArgumentDescriptionto an oldArgDesc.static org.jline.shell.ArgumentDescriptiontoArgumentDescription(ArgDesc argDesc)Converts an oldArgDescto a newArgumentDescription.static CmdDesctoCmdDesc(org.jline.shell.CommandDescription desc)Converts a newCommandDescriptionto an oldCmdDesc.static CmdLinetoCmdLine(org.jline.shell.CommandLine commandLine)Converts a newCommandLineto an oldCmdLine.static org.jline.shell.CommandDescriptiontoCommandDescription(CmdDesc cmdDesc)Converts an oldCmdDescto a newCommandDescription.static org.jline.shell.CommandLinetoCommandLine(CmdLine cmdLine)Converts an oldCmdLineto a newCommandLine.
-
-
-
Method Detail
-
toCmdDesc
public static CmdDesc toCmdDesc(org.jline.shell.CommandDescription desc)
Converts a newCommandDescriptionto an oldCmdDesc.- Parameters:
desc- the command description, may be null- Returns:
- the CmdDesc, or null if input is null
-
toCommandDescription
public static org.jline.shell.CommandDescription toCommandDescription(CmdDesc cmdDesc)
Converts an oldCmdDescto a newCommandDescription.- Parameters:
cmdDesc- the CmdDesc, may be null- Returns:
- the CommandDescription, or null if input is null
-
toCmdLine
public static CmdLine toCmdLine(org.jline.shell.CommandLine commandLine)
Converts a newCommandLineto an oldCmdLine.- Parameters:
commandLine- the command line, may be null- Returns:
- the CmdLine, or null if input is null
-
toCommandLine
public static org.jline.shell.CommandLine toCommandLine(CmdLine cmdLine)
Converts an oldCmdLineto a newCommandLine.- Parameters:
cmdLine- the CmdLine, may be null- Returns:
- the CommandLine, or null if input is null
-
toArgDesc
public static ArgDesc toArgDesc(org.jline.shell.ArgumentDescription arg)
Converts a newArgumentDescriptionto an oldArgDesc.- Parameters:
arg- the argument description, may be null- Returns:
- the ArgDesc, or null if input is null
-
-