Class SimpleMethod

java.lang.Object
com.google.auto.value.processor.SimpleMethod

public final class SimpleMethod extends Object
A method on an @AutoValue or AutoOneOf class that has no specific attached information, such as a toBuilder() method, or a build() method, where only the name and access type is needed in context.

It implements JavaBean-style getters which means it can be referenced from templates, for example $method.access. This template access means that the class and its getters must be public.

  • Field Details

    • access

      private final String access
    • name

      private final String name
  • Constructor Details

  • Method Details

    • getAccess

      public String getAccess()
    • getName

      public String getName()
    • access

      static String access(ExecutableElement method)
      Returns an appropriate string to be used in code for the access specification of the given method. This will be public or protected followed by a space, or the empty string for default access.