- All Implemented Interfaces:
Parser<T>
public class EnumNameParser<T extends Enum<T>>
extends Object
implements Parser<T>
-
Constructor Summary
Constructors
-
Method Summary
Parse value from the given text.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
EnumNameParser
public EnumNameParser(Class<T> type)
-
EnumNameParser
public EnumNameParser(Class<T> type,
boolean lowerCase)
-
Method Details
-
parse
Description copied from interface: Parser
Parse value from the given text.
- Specified by:
parse
in interface Parser<T extends Enum<T>>
- Parameters:
session
- CLI session
text
- input to parse
- Returns:
- parsed value