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

java.lang.Object
  extended by com.android.tools.lint.client.api.JavaParser.ResolvedNode
      extended by com.android.tools.lint.client.api.JavaParser.ResolvedField
Enclosing class:
JavaParser

public abstract static class JavaParser.ResolvedField
extends JavaParser.ResolvedNode

A field declaration


Constructor Summary
JavaParser.ResolvedField()
           
 
Method Summary
abstract  JavaParser.ResolvedClass getContainingClass()
           
 java.lang.String getContainingClassName()
           
abstract  java.lang.String getName()
           
abstract  JavaParser.TypeDescriptor getType()
           
abstract  java.lang.Object getValue()
           
 boolean isInPackage(java.lang.String pkg, boolean includeSubPackages)
          Returns true if this element is in the given package (or optionally, in one of its sub packages)
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
findAstNode, getAnnotation, getAnnotations, getModifiers, getSignature, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaParser.ResolvedField

public JavaParser.ResolvedField()
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()

getContainingClass

@Nullable
public abstract JavaParser.ResolvedClass getContainingClass()

getValue

@Nullable
public abstract java.lang.Object getValue()

getContainingClassName

@Nullable
public java.lang.String getContainingClassName()

isInPackage

public boolean isInPackage(@NonNull
                           java.lang.String pkg,
                           boolean includeSubPackages)
Description copied from class: JavaParser.ResolvedNode
Returns true if this element is in the given package (or optionally, in one of its sub packages)

Overrides:
isInPackage in class JavaParser.ResolvedNode
Parameters:
pkg - the package name
includeSubPackages - whether to include subpackages
Returns:
true if the element is in the given package