org.hyphenType.lexerparser
Class OptionValues<T extends Options<?>>

java.lang.Object
  extended by 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

Constructor Summary
OptionValues(List<LexToken> tokens, LexerParser<T> parser)
          Although this constructor throws many exceptions, all exceptions extend OptionValuesException.
OptionValues(List<LexToken> tokens, LexerParser<T> parser, UserInput userInput)
          Although this constructor throws many exceptions, all exceptions extend OptionValuesException.
 
Method Summary
 Map getOptionMapValue(StructureOptionMapValue optionMapValue)
           
 Object getOptionValue(StructureOptionValue optionValue)
           
 int getParsedOptionValue(StructureOption option)
           
 Object getSimpleArgumentValue(StructureSimpleArgument argument)
           
 Object getValue(Method method)
           
 int hashCode()
           
 String toString()
           
 List<LexToken> unusedArguments()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 - TODO
parser - 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 - TODO
parser - TODO
userInput - TODO
Throws:
StringParsingErrorException
MandatoryValueNotFoundException
StringParseException
RegexMismatchException
MandatoryMapValueNotFoundException
MandatorySimpleArgumentNotFoundException
InvalidOptionException - TODO
Method Detail

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.