Detector.JavaPsiScanner
APIs instead@Deprecated public abstract static class JavaParser.ResolvedMethod extends JavaParser.ResolvedNode
Constructor and Description |
---|
ResolvedMethod()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
argumentMatchesType(int index,
java.lang.String signature)
Deprecated.
Returns true if the parameter at the given index matches the given type signature
|
abstract int |
getArgumentCount()
Deprecated.
|
abstract JavaParser.TypeDescriptor |
getArgumentType(int index)
Deprecated.
|
abstract JavaParser.ResolvedClass |
getContainingClass()
Deprecated.
|
abstract java.lang.String |
getName()
Deprecated.
|
JavaParser.ResolvedAnnotation |
getParameterAnnotation(java.lang.String type,
int parameterIndex)
Deprecated.
Searches for the annotation of the given type on the method
|
abstract java.lang.Iterable<JavaParser.ResolvedAnnotation> |
getParameterAnnotations(int index)
Deprecated.
Returns any annotations defined on the given parameter of this method
|
abstract JavaParser.TypeDescriptor |
getReturnType()
Deprecated.
|
JavaParser.ResolvedMethod |
getSuperMethod()
Deprecated.
Returns the super implementation of the given method, if any
|
boolean |
isConstructor()
Deprecated.
|
boolean |
isInPackage(java.lang.String pkg,
boolean includeSubPackages)
Deprecated.
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)
Deprecated.
Returns whether this method name matches the given name
|
findAstNode, getAnnotation, getAnnotations, getModifiers, getSignature, toString
@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