Package org.jboss.as.cli.parsing
Class StateParser
- java.lang.Object
-
- org.jboss.as.cli.parsing.StateParser
-
public class StateParser extends Object
- Author:
- Alexey Loubyansky
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStateParser.SubstitutedLinestatic classStateParser.Substitution
-
Constructor Summary
Constructors Constructor Description StateParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddState(char ch, ParsingState state)protected static StateParser.SubstitutedLinedoParse(String str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState, boolean strict, boolean disableResolutionException, CommandContext cmdCtx)Returns the string which was actually parsed with all the substitutions performedStringparse(String str, ParsingStateCallbackHandler callbackHandler)Returns the string which was actually parsed with all the substitutions performed.static Stringparse(String str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState)Returns the string which was actually parsed with all the substitutions performed.static Stringparse(String str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState, boolean strict)Returns the string which was actually parsed with all the substitutions performed.static Stringparse(String str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState, boolean strict, CommandContext ctx)Returns the string which was actually parsed with all the substitutions performedstatic StateParser.SubstitutedLineparseLine(String str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState)Returns the string which was actually parsed with all the substitutions performed.static StateParser.SubstitutedLineparseLine(String str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState, boolean strict)Returns the string which was actually parsed with all the substitutions performed.static StateParser.SubstitutedLineparseLine(String str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState, boolean strict, boolean disableResolutionException, CommandContext ctx)static StateParser.SubstitutedLineparseLine(String str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState, boolean strict, CommandContext ctx)static StateParser.SubstitutedLineparseLine(String str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState, CommandContext ctx)Returns the string which was actually parsed with all the substitutions performed
-
-
-
Method Detail
-
addState
public void addState(char ch, ParsingState state)
-
parse
public String parse(String str, ParsingStateCallbackHandler callbackHandler) throws CommandFormatException
Returns the string which was actually parsed with all the substitutions performed. NB: No CommandContext being provided, variables can't be resolved. variables should be already resolved when calling this parse method.- Throws:
CommandFormatException
-
parse
public static String parse(String str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState) throws CommandFormatException
Returns the string which was actually parsed with all the substitutions performed. NB: No CommandContext being provided, variables can't be resolved. variables should be already resolved when calling this parse method.- Throws:
CommandFormatException
-
parseLine
public static StateParser.SubstitutedLine parseLine(String str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState) throws CommandFormatException
Returns the string which was actually parsed with all the substitutions performed. NB: No CommandContext being provided, variables can't be resolved. variables should be already resolved when calling this parse method.- Throws:
CommandFormatException
-
parse
public static String parse(String str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState, boolean strict) throws CommandFormatException
Returns the string which was actually parsed with all the substitutions performed. NB: No CommandContext being provided, variables can't be resolved. variables should be already resolved when calling this parse method.- Throws:
CommandFormatException
-
parseLine
public static StateParser.SubstitutedLine parseLine(String str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState, boolean strict) throws CommandFormatException
Returns the string which was actually parsed with all the substitutions performed. NB: No CommandCOntext being provided, variables can't be resolved. variables should be already resolved when calling this parse method.- Throws:
CommandFormatException
-
parseLine
public static StateParser.SubstitutedLine parseLine(String str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState, CommandContext ctx) throws CommandFormatException
Returns the string which was actually parsed with all the substitutions performed- Throws:
CommandFormatException
-
parse
public static String parse(String str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState, 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 str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState, boolean strict, CommandContext ctx) throws CommandFormatException
- Throws:
CommandFormatException
-
parseLine
public static StateParser.SubstitutedLine parseLine(String str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState, boolean strict, boolean disableResolutionException, CommandContext ctx) throws CommandFormatException
- Throws:
CommandFormatException
-
doParse
protected static StateParser.SubstitutedLine doParse(String str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState, boolean strict, boolean disableResolutionException, CommandContext cmdCtx) throws CommandFormatException
Returns the string which was actually parsed with all the substitutions performed- Throws:
CommandFormatException
-
-