Class ApiFactory
java.lang.Object
com.google.errorprone.bugpatterns.checkreturnvalue.ApiFactory
public final class ApiFactory extends Object
Utility method to produce
Api
objects from javac Symbol.MethodSymbol
.-
Method Summary
Modifier and Type Method Description static com.sun.tools.javac.code.Type
cloneWithoutMetadata(com.sun.tools.javac.code.Type type)
static Api
fromSymbol(com.sun.tools.javac.code.Symbol.MethodSymbol symbol, com.sun.tools.javac.code.Types types)
Returns theApi
representation of the givensymbol
.
-
Method Details
-
fromSymbol
public static Api fromSymbol(com.sun.tools.javac.code.Symbol.MethodSymbol symbol, com.sun.tools.javac.code.Types types)Returns theApi
representation of the givensymbol
. -
cloneWithoutMetadata
public static com.sun.tools.javac.code.Type cloneWithoutMetadata(com.sun.tools.javac.code.Type type)
-