Class StronglyType.Builder

java.lang.Object
com.google.errorprone.bugpatterns.StronglyType.Builder
Enclosing class:
StronglyType

public abstract static class StronglyType.Builder extends Object
Builder for StronglyType
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • 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<com.sun.source.tree.ExpressionTree> matcher)
      Set the matcher used to check if an expression is a factory creating a stronger type.
    • addType

      @CanIgnoreReturnValue 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()