Class StronglyType.Builder

Enclosing class:

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( type)
      Add a type that can be replaced with a stronger type.
    • build

      public abstract StronglyType build()