| 限定符和类型 | 类和说明 |
|---|---|
static class |
AptAnnotationAttributes.Member |
public static <A extends Annotation> AptAnnotationAttributes of(@Nonnull ProcessingEnvironment env, @Nonnull AnnotationMirror annotation)
public static <A extends Annotation> AptAnnotationAttributes of(@Nonnull ProcessingEnvironment env, @Nullable TypeElement annotationType)
public static <A extends Annotation> ExecutableElement[] getAnnotationMembers(@Nonnull TypeElement annotationType)
public AptAnnotationAttributes clone()
public Map<String,AnnotationValue> asMap()
public Map<String,AptAnnotationAttributes.Member> getMembers()
public boolean hasMember(String name)
public AptAnnotationAttributes.Member getMember(String name)
public void set(Map<String,AnnotationValue> values)
public boolean set(String name, AnnotationValue value)
name - 属性名value - 属性值public void setIf(Map<String,AnnotationValue> values, BiPredicate<AptAnnotationAttributes.Member,AnnotationValue> predicate)
public boolean setIf(String name, AnnotationValue value, BiPredicate<AptAnnotationAttributes.Member,AnnotationValue> predicate)
name - 属性名称value - 要设置的值predicate - 判断条件,用于决定是否设置值public void setIfNotDefault(Map<String,AnnotationValue> values)
public boolean setIfNotDefault(String name, AnnotationValue value)
public AnnotationValue get(String name)
public DeclaredType getClass(String name)
public VariableElement getEnum(String name)
public AnnotationMirror getAnnotation(String name)
public List<? extends AnnotationValue> getArray(String name)
Copyright © 2025 fossc. All rights reserved.