com.google.caliper.util
Class Parsers
java.lang.Object
com.google.caliper.util.Parsers
public class Parsers
- extends Object
IDENTITY
public static final Parser<String> IDENTITY
Parsers
public Parsers()
conventionalParser
public static <T> Parser<T> conventionalParser(Class<T> resultType)
throws NoSuchMethodException
- Parser that tries, in this order:
- ResultType.fromString(String)
- ResultType.decode(String)
- ResultType.valueOf(String)
- new ResultType(String)
- 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.