|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.android.tools.lint.client.api.JavaParser.ResolvedNode com.android.tools.lint.client.api.JavaParser.ResolvedMethod
public abstract static class JavaParser.ResolvedMethod
A method or constructor declaration
Constructor Summary | |
---|---|
JavaParser.ResolvedMethod()
|
Method Summary | |
---|---|
boolean |
argumentMatchesType(int index,
java.lang.String signature)
Returns true if the parameter at the given index matches the given type signature |
abstract int |
getArgumentCount()
|
abstract JavaParser.TypeDescriptor |
getArgumentType(int index)
|
abstract JavaParser.ResolvedClass |
getContainingClass()
|
abstract java.lang.String |
getName()
|
JavaParser.ResolvedAnnotation |
getParameterAnnotation(java.lang.String type,
int parameterIndex)
Searches for the annotation of the given type on the method |
abstract java.lang.Iterable<JavaParser.ResolvedAnnotation> |
getParameterAnnotations(int index)
Returns any annotations defined on the given parameter of this method |
abstract JavaParser.TypeDescriptor |
getReturnType()
|
JavaParser.ResolvedMethod |
getSuperMethod()
Returns the super implementation of the given method, if any |
boolean |
isConstructor()
|
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 method 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 |
---|
public JavaParser.ResolvedMethod()
Method Detail |
---|
@NonNull public abstract java.lang.String getName()
getName
in class JavaParser.ResolvedNode
public abstract boolean matches(@NonNull java.lang.String name)
@NonNull public abstract JavaParser.ResolvedClass getContainingClass()
public abstract int getArgumentCount()
@NonNull public abstract JavaParser.TypeDescriptor getArgumentType(int index)
public boolean argumentMatchesType(int index, @NonNull java.lang.String signature)
@Nullable public abstract JavaParser.TypeDescriptor getReturnType()
public boolean isConstructor()
@NonNull public abstract java.lang.Iterable<JavaParser.ResolvedAnnotation> getParameterAnnotations(int index)
@Nullable public JavaParser.ResolvedAnnotation getParameterAnnotation(@NonNull java.lang.String type, int parameterIndex)
type
- the fully qualified name of the annotation to checkparameterIndex
- the index of the parameter to look up
@Nullable public JavaParser.ResolvedMethod getSuperMethod()
public boolean isInPackage(@NonNull java.lang.String pkg, boolean includeSubPackages)
JavaParser.ResolvedNode
isInPackage
in class JavaParser.ResolvedNode
pkg
- the package nameincludeSubPackages
- whether to include subpackages
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |