com.android.tools.lint.client.api
Class JavaParser.ResolvedAnnotation
java.lang.Object
com.android.tools.lint.client.api.JavaParser.ResolvedNode
com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation
- Enclosing class:
- JavaParser
public abstract static class JavaParser.ResolvedAnnotation
- extends JavaParser.ResolvedNode
An annotation reference. Note that this refers to a usage of an annotation,
not a declaraton of an annotation. You can call getClassType()
to
find the declaration for the annotation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JavaParser.ResolvedAnnotation
public JavaParser.ResolvedAnnotation()
getName
@NonNull
public abstract java.lang.String getName()
- Specified by:
getName
in class JavaParser.ResolvedNode
matches
public abstract boolean matches(@NonNull
java.lang.String name)
- Returns whether this field name matches the given name
getType
@NonNull
public abstract JavaParser.TypeDescriptor getType()
getClassType
@Nullable
public abstract JavaParser.ResolvedClass getClassType()
- Returns the
JavaParser.ResolvedClass
which defines the annotation
getValues
@NonNull
public abstract java.util.List<JavaParser.ResolvedAnnotation.Value> getValues()
getValue
@Nullable
public java.lang.Object getValue(@NonNull
java.lang.String name)
getValue
@Nullable
public java.lang.Object getValue()
getAnnotations
@NonNull
public java.lang.Iterable<JavaParser.ResolvedAnnotation> getAnnotations()
- Description copied from class:
JavaParser.ResolvedNode
- Returns any annotations defined on this node
- Specified by:
getAnnotations
in class JavaParser.ResolvedNode