Package com.google.auto.value.extension
Interface AutoValueExtension.Context
-
- Enclosing class:
- AutoValueExtension
public static interface AutoValueExtension.ContextThe context of the generation cycle.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<ExecutableElement>abstractMethods()Returns the complete set of abstract methods defined in or inherited by the@AutoValueclass.TypeElementautoValueClass()Returns the annotated class that this generation cycle is based on.StringpackageName()Returns the package name of the classes to be generated.ProcessingEnvironmentprocessingEnvironment()Returns the processing environment of this generation cycle.Map<String,ExecutableElement>properties()Returns the ordered collection of properties to be generated by AutoValue.
-
-
-
Method Detail
-
processingEnvironment
ProcessingEnvironment processingEnvironment()
Returns the processing environment of this generation cycle. This can be used, among other things, to produce compilation warnings or errors, usingProcessingEnvironment.getMessager().
-
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 beFoo.
-
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 propertybaris defined byabstract String getBar()then this map will have an entry mapping"bar"to theExecutableElementforgetBar().
-
abstractMethods
Set<ExecutableElement> abstractMethods()
Returns the complete set of abstract methods defined in or inherited by the@AutoValueclass. This includes all methods that define properties (likeabstract String getBar()), any abstracttoBuilder()method, and any other abstract method even if it has been consumed by this or another Extension.
-
-