com.twitter.common.args
Interface ParserOracle

All Known Implementing Classes:
Parsers

public interface ParserOracle

A registry of Parsers for different supported argument types.


Method Summary
 Parser get(Class<?> cls)
          Gets the parser associated with a class.
 

Method Detail

get

Parser get(Class<?> cls)
           throws IllegalArgumentException
Gets the parser associated with a class.

Parameters:
cls - Class to get the parser for.
Returns:
The parser for cls.
Throws:
IllegalArgumentException - If no parser was found for cls.