org.hyphenType.lexerparser
Class OptionValues<T extends Options<?>>
java.lang.Object
org.hyphenType.lexerparser.OptionValues<T>
- Type Parameters:
T
- TODO
public class OptionValues<T extends Options<?>>
- extends Object
Stores the values related to a data structure holding the structure of an
options interface.
- Author:
- Aurelio Akira M. Matsui
OptionValues
public OptionValues(List<LexToken> tokens,
LexerParser<T> parser)
throws StringParsingErrorException,
MandatoryValueNotFoundException,
RegexMismatchException,
StringParseException,
MandatoryMapValueNotFoundException,
MandatorySimpleArgumentNotFoundException
- Although this constructor throws many exceptions, all exceptions extend
OptionValuesException
. So you can simply catch
OptionValuesException
if you do not want to tackle each
exception in a special way.
- Parameters:
tokens
- TODOparser
- TODO
- Throws:
MandatorySimpleArgumentNotFoundException
MandatoryMapValueNotFoundException
StringParseException
RegexMismatchException
MandatoryValueNotFoundException
StringParsingErrorException
InvalidOptionException
- TODO
OptionValues
public OptionValues(List<LexToken> tokens,
LexerParser<T> parser,
UserInput userInput)
throws StringParsingErrorException,
MandatoryValueNotFoundException,
RegexMismatchException,
StringParseException,
MandatoryMapValueNotFoundException,
MandatorySimpleArgumentNotFoundException
- Although this constructor throws many exceptions, all exceptions extend
OptionValuesException
. So you can simply catch
OptionValuesException
if you do not want to tackle each
exception in a special way.
- Parameters:
tokens
- TODOparser
- TODOuserInput
- TODO
- Throws:
StringParsingErrorException
MandatoryValueNotFoundException
StringParseException
RegexMismatchException
MandatoryMapValueNotFoundException
MandatorySimpleArgumentNotFoundException
InvalidOptionException
- TODO
getParsedOptionValue
public final int getParsedOptionValue(StructureOption option)
- Parameters:
option
- TODO
- Returns:
- TODO
getOptionMapValue
public final Map getOptionMapValue(StructureOptionMapValue optionMapValue)
- Parameters:
optionMapValue
- TODO
- Returns:
- TODO
getOptionValue
public final Object getOptionValue(StructureOptionValue optionValue)
- Parameters:
optionValue
- TODO
- Returns:
- TODO
getSimpleArgumentValue
public final Object getSimpleArgumentValue(StructureSimpleArgument argument)
- Parameters:
argument
- TODO
- Returns:
- TODO
unusedArguments
public final List<LexToken> unusedArguments()
- Returns:
- TODO
getValue
public final Object getValue(Method method)
- Parameters:
method
- TODO
- Returns:
- TODO
hashCode
public final int hashCode()
- Overrides:
hashCode
in class Object
toString
public final String toString()
- Overrides:
toString
in class Object
Copyright © 2013. All Rights Reserved.