| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| private static class | AnnotationSpec.Visitor
Annotation value visitor adding members to the given builder instance. |
| Modifier and Type | Field and Description |
|---|---|
| public final Map | |
| public final TypeName |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AnnotationSpec. | |
| public static AnnotationSpec. | |
| pack-priv void | |
| private void | emitAnnotationValues(CodeWriter codeWriter, String whitespace, String memberSeparator, List<CodeBlock> values)
|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public static AnnotationSpec | |
| public static AnnotationSpec | |
| public static AnnotationSpec | |
| public int | |
| public AnnotationSpec. | |
| public String |
| members | back to summary |
|---|---|
| public final Map<String, List<CodeBlock>> members | |
| type | back to summary |
|---|---|
| public final TypeName type | |
| AnnotationSpec | back to summary |
|---|---|
| private AnnotationSpec(AnnotationSpec. | |
| builder | back to summary |
|---|---|
| public static AnnotationSpec. | |
| builder | back to summary |
|---|---|
| public static AnnotationSpec. | |
| emit | back to summary |
|---|---|
| pack-priv void emit(CodeWriter codeWriter, boolean inline) throws IOException | |
| emitAnnotationValues | back to summary |
|---|---|
| private void emitAnnotationValues(CodeWriter codeWriter, String whitespace, String memberSeparator, List<CodeBlock> values) throws IOException | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| get | back to summary |
|---|---|
| public static AnnotationSpec get(Annotation annotation) | |
| get | back to summary |
|---|---|
| public static AnnotationSpec get(Annotation annotation, boolean includeDefaultValues) | |
| get | back to summary |
|---|---|
| public static AnnotationSpec get(AnnotationMirror annotation) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toBuilder | back to summary |
|---|---|
| public AnnotationSpec. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| public final Map | |
| private final TypeName |
| Modifier and Type | Method and Description |
|---|---|
| public AnnotationSpec. | |
| public AnnotationSpec. | |
| pack-priv AnnotationSpec. | addMemberForValue(String memberName, Object value)
Delegates to |
| public AnnotationSpec |
| members | back to summary |
|---|---|
| public final Map<String, List<CodeBlock>> members | |
| type | back to summary |
|---|---|
| private final TypeName type | |
| Builder | back to summary |
|---|---|
| private Builder(TypeName type) | |
| addMember | back to summary |
|---|---|
| public AnnotationSpec. | |
| addMember | back to summary |
|---|---|
| public AnnotationSpec. | |
| addMemberForValue | back to summary |
|---|---|
| pack-priv AnnotationSpec. Delegates to | |
| build | back to summary |
|---|---|
| public AnnotationSpec build() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final AnnotationSpec. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| builder | back to summary |
|---|---|
| pack-priv final AnnotationSpec. | |
| Visitor | back to summary |
|---|---|
| pack-priv Visitor(AnnotationSpec. | |
| defaultAction | back to summary |
|---|---|
| protected AnnotationSpec. Overrides javax. Doc from javax. The default action for visit methods.
| |
| visitAnnotation | back to summary |
|---|---|
| public AnnotationSpec. Overrides javax. Implements javax. Doc from javax. Visits an annotation value in an annotation.
| |
| visitArray | back to summary |
|---|---|
| public AnnotationSpec. Overrides javax. Implements javax. Doc from javax. Visits an array value in an annotation.
| |
| visitEnumConstant | back to summary |
|---|---|
| public AnnotationSpec. Overrides javax. Implements javax. Doc from javax. Visits an
| |
| visitType | back to summary |
|---|---|
| public AnnotationSpec. Overrides javax. Implements javax. Doc from javax. Visits a type value in an annotation.
| |