com.android.tools.lint.client.api
Class JavaParser.ResolvedField
java.lang.Object
com.android.tools.lint.client.api.JavaParser.ResolvedNode
com.android.tools.lint.client.api.JavaParser.ResolvedField
- Enclosing class:
- JavaParser
public abstract static class JavaParser.ResolvedField
- extends JavaParser.ResolvedNode
A field declaration
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JavaParser.ResolvedField
public JavaParser.ResolvedField()
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
@NonNull
public abstract JavaParser.ResolvedClass getContainingClass()
getValue
@Nullable
public abstract java.lang.Object getValue()
getContainingClassName
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 nameincludeSubPackages
- whether to include subpackages
- Returns:
- true if the element is in the given package