Package org.jboss.as.cli.parsing
Class ParserUtil
- java.lang.Object
-
- org.jboss.as.cli.parsing.ParserUtil
-
public class ParserUtil extends Object
- Author:
- Alexey Loubyansky
-
-
Constructor Summary
Constructors Constructor Description ParserUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static ParsingStateCallbackHandlergetCallbackHandler(CommandLineParser.CallbackHandler handler)static Stringparse(String commandLine, CommandLineParser.CallbackHandler handler)Returns the string which was actually parsed with all the substitutions performedstatic Stringparse(String commandLine, CommandLineParser.CallbackHandler handler, boolean strict)Returns the string which was actually parsed with all the substitutions performedstatic Stringparse(String commandLine, CommandLineParser.CallbackHandler handler, boolean strict, CommandContext ctx)Returns the string which was actually parsed with all the substitutions performedstatic Stringparse(String str, CommandLineParser.CallbackHandler handler, ParsingState initialState)Returns the string which was actually parsed with all the substitutions performedstatic StringparseCommandArgs(String commandLine, CommandLineParser.CallbackHandler handler)Returns the string which was actually parsed with all the substitutions performedstatic StringparseHeaders(String commandLine, CommandLineParser.CallbackHandler handler)Returns the string which was actually parsed with all the substitutions performedstatic StringparseHeaders(String commandLine, CommandLineParser.CallbackHandler handler, CommandContext ctx)Returns the string which was actually parsed with all the substitutions performedstatic StateParser.SubstitutedLineparseHeadersLine(String commandLine, CommandLineParser.CallbackHandler handler, CommandContext ctx)Returns the string which was actually parsed with all the substitutions performedstatic StateParser.SubstitutedLineparseLine(String commandLine, CommandLineParser.CallbackHandler handler, boolean strict, CommandContext ctx)static StateParser.SubstitutedLineparseLine(String commandLine, CommandLineParser.CallbackHandler handler, boolean strict, CommandContext ctx, boolean disableResolutionException)static StringparseOperationRequest(String commandLine, CommandLineParser.CallbackHandler handler)Returns the string which was actually parsed with all the substitutions performedstatic StringparseOperationRequest(String commandLine, CommandLineParser.CallbackHandler handler, CommandContext ctx)Returns the string which was actually parsed with all the substitutions performedstatic StateParser.SubstitutedLineparseOperationRequestLine(String commandLine, CommandLineParser.CallbackHandler handler)static StateParser.SubstitutedLineparseOperationRequestLine(String commandLine, CommandLineParser.CallbackHandler handler, CommandContext ctx)Returns the string which was actually parsed with all the substitutions performed
-
-
-
Method Detail
-
parse
public static String parse(String commandLine, CommandLineParser.CallbackHandler handler) throws CommandFormatException
Returns the string which was actually parsed with all the substitutions performed- Throws:
CommandFormatException
-
parse
public static String parse(String commandLine, CommandLineParser.CallbackHandler handler, boolean strict) throws CommandFormatException
Returns the string which was actually parsed with all the substitutions performed- Throws:
CommandFormatException
-
parse
public static String parse(String commandLine, CommandLineParser.CallbackHandler handler, boolean strict, CommandContext ctx) throws CommandFormatException
Returns the string which was actually parsed with all the substitutions performed- Throws:
CommandFormatException
-
parseLine
public static StateParser.SubstitutedLine parseLine(String commandLine, CommandLineParser.CallbackHandler handler, boolean strict, CommandContext ctx) throws CommandFormatException
- Throws:
CommandFormatException
-
parseLine
public static StateParser.SubstitutedLine parseLine(String commandLine, CommandLineParser.CallbackHandler handler, boolean strict, CommandContext ctx, boolean disableResolutionException) throws CommandFormatException
- Throws:
CommandFormatException
-
parseOperationRequest
public static String parseOperationRequest(String commandLine, CommandLineParser.CallbackHandler handler) throws CommandFormatException
Returns the string which was actually parsed with all the substitutions performed- Throws:
CommandFormatException
-
parseOperationRequest
public static String parseOperationRequest(String commandLine, CommandLineParser.CallbackHandler handler, CommandContext ctx) throws CommandFormatException
Returns the string which was actually parsed with all the substitutions performed- Throws:
CommandFormatException
-
parseOperationRequestLine
public static StateParser.SubstitutedLine parseOperationRequestLine(String commandLine, CommandLineParser.CallbackHandler handler) throws CommandFormatException
- Throws:
CommandFormatException
-
parseOperationRequestLine
public static StateParser.SubstitutedLine parseOperationRequestLine(String commandLine, CommandLineParser.CallbackHandler handler, CommandContext ctx) throws CommandFormatException
Returns the string which was actually parsed with all the substitutions performed- Throws:
CommandFormatException
-
parseHeaders
public static String parseHeaders(String commandLine, CommandLineParser.CallbackHandler handler) throws CommandFormatException
Returns the string which was actually parsed with all the substitutions performed- Throws:
CommandFormatException
-
parseHeaders
public static String parseHeaders(String commandLine, CommandLineParser.CallbackHandler handler, CommandContext ctx) throws CommandFormatException
Returns the string which was actually parsed with all the substitutions performed- Throws:
CommandFormatException
-
parseHeadersLine
public static StateParser.SubstitutedLine parseHeadersLine(String commandLine, CommandLineParser.CallbackHandler handler, CommandContext ctx) throws CommandFormatException
Returns the string which was actually parsed with all the substitutions performed- Throws:
CommandFormatException
-
parseCommandArgs
public static String parseCommandArgs(String commandLine, CommandLineParser.CallbackHandler handler) throws CommandFormatException
Returns the string which was actually parsed with all the substitutions performed- Throws:
CommandFormatException
-
parse
public static String parse(String str, CommandLineParser.CallbackHandler handler, ParsingState initialState) throws CommandFormatException
Returns the string which was actually parsed with all the substitutions performed- Throws:
CommandFormatException
-
getCallbackHandler
protected static ParsingStateCallbackHandler getCallbackHandler(CommandLineParser.CallbackHandler handler)
-
-