Class StronglyType.Builder
- java.lang.Object
-
- com.google.errorprone.bugpatterns.StronglyType.Builder
-
- Enclosing class:
- StronglyType
public abstract static class StronglyType.Builder extends Object
Builder forStronglyType
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StronglyType.Builder
addType(com.sun.tools.javac.code.Type type)
Add a type that can be replaced with a stronger type.abstract StronglyType
build()
abstract StronglyType.Builder
setFactoryMatcher(Matcher<ExpressionTree> matcher)
Set the matcher used to check if an expression is a factory creating a stronger type.abstract StronglyType.Builder
setRenameFunction(Function<String,String> renameFn)
Set a mapping function that maps from the original name to a new name more befitting the strong type.
-
-
-
Method Detail
-
setRenameFunction
public abstract StronglyType.Builder setRenameFunction(Function<String,String> renameFn)
Set a mapping function that maps from the original name to a new name more befitting the strong type.
-
setFactoryMatcher
public abstract StronglyType.Builder setFactoryMatcher(Matcher<ExpressionTree> matcher)
Set the matcher used to check if an expression is a factory creating a stronger type.
-
addType
public final StronglyType.Builder addType(com.sun.tools.javac.code.Type type)
Add a type that can be replaced with a stronger type.
-
build
public abstract StronglyType build()
-
-