public class ParseState<T> extends Object
Modifier and Type | Method and Description |
---|---|
CommandMetadata |
getCommand() |
OptionMetadata |
getCurrentOption() |
GlobalMetadata<T> |
getGlobal() |
CommandGroupMetadata |
getGroup() |
Context |
getLocation() |
List<Object> |
getParsedArguments() |
List<org.apache.commons.lang3.tuple.Pair<OptionMetadata,Object>> |
getParsedOptions() |
ParserMetadata<T> |
getParserConfiguration() |
List<String> |
getUnparsedInput() |
static <T> ParseState<T> |
newInstance() |
ParseState<T> |
popContext() |
ParseState<T> |
pushContext(Context location) |
String |
toString() |
ParseState<T> |
withArgument(ArgumentsMetadata arguments,
String rawValue) |
ParseState<T> |
withCommand(CommandMetadata command) |
ParseState<T> |
withConfiguration(ParserMetadata<T> parserConfig) |
ParseState<T> |
withGlobal(GlobalMetadata<T> global) |
ParseState<T> |
withGroup(CommandGroupMetadata group) |
ParseState<T> |
withOption(OptionMetadata option) |
ParseState<T> |
withOptionValue(OptionMetadata option,
String rawValue) |
ParseState<T> |
withUnparsedInput(String input) |
public static <T> ParseState<T> newInstance()
public ParseState<T> pushContext(Context location)
public ParseState<T> popContext()
public ParseState<T> withOptionValue(OptionMetadata option, String rawValue)
public ParseState<T> withGlobal(GlobalMetadata<T> global)
public ParseState<T> withConfiguration(ParserMetadata<T> parserConfig)
public ParseState<T> withGroup(CommandGroupMetadata group)
public ParseState<T> withCommand(CommandMetadata command)
public ParseState<T> withOption(OptionMetadata option)
public ParseState<T> withArgument(ArgumentsMetadata arguments, String rawValue)
public ParseState<T> withUnparsedInput(String input)
public Context getLocation()
public GlobalMetadata<T> getGlobal()
public ParserMetadata<T> getParserConfiguration()
public CommandGroupMetadata getGroup()
public CommandMetadata getCommand()
public OptionMetadata getCurrentOption()
public List<org.apache.commons.lang3.tuple.Pair<OptionMetadata,Object>> getParsedOptions()
Copyright © 2012–2017. All rights reserved.