com.android.tools.lint.client.api
Class JavaParser.ResolvedAnnotation

java.lang.Object
  extended by com.android.tools.lint.client.api.JavaParser.ResolvedNode
      extended by 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.


Nested Class Summary
static class JavaParser.ResolvedAnnotation.Value
           
 
Constructor Summary
JavaParser.ResolvedAnnotation()
           
 
Method Summary
 java.lang.Iterable<JavaParser.ResolvedAnnotation> getAnnotations()
          Returns any annotations defined on this node
abstract  JavaParser.ResolvedClass getClassType()
          Returns the JavaParser.ResolvedClass which defines the annotation
abstract  java.lang.String getName()
           
abstract  JavaParser.TypeDescriptor getType()
           
 java.lang.Object getValue()
           
 java.lang.Object getValue(java.lang.String name)
           
abstract  java.util.List<JavaParser.ResolvedAnnotation.Value> getValues()
           
abstract  boolean matches(java.lang.String name)
          Returns whether this field name matches the given name
 
Methods inherited from class com.android.tools.lint.client.api.JavaParser.ResolvedNode
getAnnotation, getModifiers, getSignature, isInPackage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaParser.ResolvedAnnotation

public JavaParser.ResolvedAnnotation()
Method Detail

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