public static interface AutoValueExtension.Context
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<javax.lang.model.element.ExecutableElement> |
abstractMethods()
Returns the complete set of abstract methods defined in or inherited by the
@AutoValue class. |
javax.lang.model.element.TypeElement |
autoValueClass()
Returns the annotated class that this generation cycle is based on.
|
java.lang.String |
packageName()
Returns the package name of the classes to be generated.
|
javax.annotation.processing.ProcessingEnvironment |
processingEnvironment()
Returns the processing environment of this generation cycle.
|
java.util.Map<java.lang.String,javax.lang.model.element.ExecutableElement> |
properties()
Returns the ordered collection of properties to be generated by AutoValue.
|
javax.annotation.processing.ProcessingEnvironment processingEnvironment()
ProcessingEnvironment.getMessager().java.lang.String packageName()
javax.lang.model.element.TypeElement autoValueClass()
Given @AutoValue public class Foo {...}, this will be Foo.
java.util.Map<java.lang.String,javax.lang.model.element.ExecutableElement> properties()
bar is defined by abstract String getBar() then this map
will have an entry mapping "bar" to the ExecutableElement for getBar().java.util.Set<javax.lang.model.element.ExecutableElement> abstractMethods()
@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.Copyright © 2018 Google, Inc.. All Rights Reserved.