com.google.caliper.util
Class Parsers

java.lang.Object
  extended by com.google.caliper.util.Parsers

public class Parsers
extends Object


Field Summary
static Parser<String> IDENTITY
           
 
Constructor Summary
Parsers()
           
 
Method Summary
static
<T> Parser<T>
conventionalParser(Class<T> resultType)
          Parser that tries, in this order: ResultType.fromString(String) ResultType.decode(String) ResultType.valueOf(String) new ResultType(String)
static ParseException newParseException(String message)
           
static ParseException newParseException(String message, Throwable cause)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTITY

public static final Parser<String> IDENTITY
Constructor Detail

Parsers

public Parsers()
Method Detail

conventionalParser

public static <T> Parser<T> conventionalParser(Class<T> resultType)
                                    throws NoSuchMethodException
Parser that tries, in this order:

Throws:
NoSuchMethodException

newParseException

public static ParseException newParseException(String message,
                                               Throwable cause)

newParseException

public static ParseException newParseException(String message)


Copyright © 2009-2011 Google, Inc.. All Rights Reserved.