com.android.tools.lint.client.api
Class JavaParser.ResolvedClass
java.lang.Object
com.android.tools.lint.client.api.JavaParser.ResolvedNode
com.android.tools.lint.client.api.JavaParser.ResolvedClass
- Enclosing class:
- JavaParser
public abstract static class JavaParser.ResolvedClass
- extends JavaParser.ResolvedNode
A resolved class declaration
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JavaParser.ResolvedClass
public JavaParser.ResolvedClass()
getName
@NonNull
public abstract java.lang.String getName()
- Returns the fully qualified name of this class
- Specified by:
getName
in class JavaParser.ResolvedNode
matches
public abstract boolean matches(@NonNull
java.lang.String name)
- Returns whether this class' fully qualified name matches the given name
getSuperClass
@Nullable
public abstract JavaParser.ResolvedClass getSuperClass()
getContainingClass
@Nullable
public abstract JavaParser.ResolvedClass getContainingClass()
getType
public JavaParser.TypeDescriptor getType()
isSubclassOf
public abstract boolean isSubclassOf(@NonNull
java.lang.String name,
boolean strict)
- Determines whether this class extends the given name. If strict is true,
it will not consider C extends C true.
- Parameters:
name
- the fully qualified class namestrict
- if true, do not consider a class to be extending itself
- Returns:
- true if this class extends the given class
getConstructors
@NonNull
public abstract java.lang.Iterable<JavaParser.ResolvedMethod> getConstructors()
getMethods
@NonNull
public abstract java.lang.Iterable<JavaParser.ResolvedMethod> getMethods(@NonNull
java.lang.String name)
getField
@Nullable
public abstract JavaParser.ResolvedField getField(@NonNull
java.lang.String name)