Interface AutoValueExtension.Context

  • Enclosing class:
    AutoValueExtension

    public static interface AutoValueExtension.Context
    The context of the generation cycle.
    • Method Detail

      • packageName

        String packageName()
        Returns the package name of the classes to be generated.
      • autoValueClass

        TypeElement autoValueClass()
        Returns the annotated class that this generation cycle is based on.

        Given @AutoValue public class Foo {...}, this will be Foo.

      • properties

        Map<String,​ExecutableElement> properties()
        Returns the ordered collection of properties to be generated by AutoValue. Each key is a property name, and the corresponding value is the getter method for that property. For example, if property bar is defined by abstract String getBar() then this map will have an entry mapping "bar" to the ExecutableElement for getBar().
      • abstractMethods

        Set<ExecutableElement> abstractMethods()
        Returns the complete set of abstract methods defined in or inherited by the @AutoValue class. This includes all methods that define properties (like abstract String getBar()), any abstract toBuilder() method, and any other abstract method even if it has been consumed by this or another Extension.