Package com.google.auto.value.extension
Enum AutoValueExtension.IncrementalExtensionType
- java.lang.Object
-
- java.lang.Enum<AutoValueExtension.IncrementalExtensionType>
-
- com.google.auto.value.extension.AutoValueExtension.IncrementalExtensionType
-
- All Implemented Interfaces:
Serializable
,Comparable<AutoValueExtension.IncrementalExtensionType>
- Enclosing class:
- AutoValueExtension
public static enum AutoValueExtension.IncrementalExtensionType extends Enum<AutoValueExtension.IncrementalExtensionType>
Indicates to an annotation processor environment supporting incremental annotation processing (currently a feature specific to Gradle starting with version 4.8) the incremental type of an Extension.The constants for this enum are ordered by increasing performance (but also constraints).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AGGREGATING
This extension is aggregating, meaning that it may generate outputs based on several annotated input classes and it respects the constraints imposed on aggregating processors.ISOLATING
This extension is isolating, meaning roughly that its output depends on the@AutoValue
class and its dependencies, but not on other@AutoValue
classes that might be compiled at the same time.UNKNOWN
The incrementality of this extension is unknown, or it is neither aggregating nor isolating.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AutoValueExtension.IncrementalExtensionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AutoValueExtension.IncrementalExtensionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final AutoValueExtension.IncrementalExtensionType UNKNOWN
The incrementality of this extension is unknown, or it is neither aggregating nor isolating.
-
AGGREGATING
public static final AutoValueExtension.IncrementalExtensionType AGGREGATING
This extension is aggregating, meaning that it may generate outputs based on several annotated input classes and it respects the constraints imposed on aggregating processors. It is unusual for AutoValue extensions to be aggregating.
-
ISOLATING
public static final AutoValueExtension.IncrementalExtensionType ISOLATING
This extension is isolating, meaning roughly that its output depends on the@AutoValue
class and its dependencies, but not on other@AutoValue
classes that might be compiled at the same time. The constraints that an isolating extension must respect are the same as those that Gradle imposes on an isolating annotation processor.
-
-
Method Detail
-
values
public static AutoValueExtension.IncrementalExtensionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AutoValueExtension.IncrementalExtensionType c : AutoValueExtension.IncrementalExtensionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AutoValueExtension.IncrementalExtensionType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-