Comparable<MethodInfo>
public class MethodInfo extends Object implements Comparable<MethodInfo>
Modifier and Type | Field | Description |
---|---|---|
protected ScanResult |
scanResult |
Modifier and Type | Method | Description |
---|---|---|
int |
compareTo(MethodInfo other) |
Sort in order of class name, method name, then type descriptor.
|
boolean |
equals(Object obj) |
Test class name, method name and type descriptor for equals().
|
AnnotationInfoList |
getAnnotationInfo() |
Get a list of annotations on this method, along with any annotation parameter values.
|
protected String |
getClassName() |
Returns the defining class name, so that super.getClassInfo() returns the
ClassInfo object for the
defining class. |
protected void |
getClassNamesFromTypeDescriptors(Set<String> classNames) |
Get the names of any classes in the type descriptor or type signature.
|
ClassInfo |
getDefiningClassInfo() |
Get the class this method is defined within.
|
String |
getDefiningClassName() |
Get the name of the class this method is defined within.
|
int |
getModifiers() |
Returns the modifier bits for the method.
|
String |
getModifiersStr() |
Get the method modifiers as a String, e.g.
|
String |
getName() |
Returns the name of the method.
|
MethodParameterInfo[] |
getParameterInfo() |
Get the available information on method parameters.
|
MethodTypeSignature |
getTypeDescriptor() |
Returns the parsed type descriptor for the method, which will not include type parameters.
|
MethodTypeSignature |
getTypeSignature() |
Returns the parsed type signature for the method, possibly including type parameters.
|
MethodTypeSignature |
getTypeSignatureOrTypeDescriptor() |
Returns the parsed type signature for the method, possibly including type parameters.
|
int |
hashCode() |
Use hash code of class name, method name and type descriptor.
|
boolean |
isBridge() |
Returns true if this method is a bridge method.
|
boolean |
isConstructor() |
Returns true if this method is a constructor.
|
boolean |
isFinal() |
Returns true if this method is final.
|
boolean |
isNative() |
Returns true if this method is a native method.
|
boolean |
isPublic() |
Returns true if this method is public.
|
boolean |
isStatic() |
Returns true if this method is static.
|
boolean |
isSynchronized() |
Returns true if this method is synchronized.
|
boolean |
isVarArgs() |
Returns true if this method is a varargs method.
|
String |
toString() |
Get a string representation of the method.
|
protected transient ScanResult scanResult
public String getName()
"<init>"
, and private static class
initializer blocks are named "<clinit>"
.public int getModifiers()
public String getModifiersStr()
getModifiers()
.public String getDefiningClassName()
public ClassInfo getDefiningClassInfo()
public MethodTypeSignature getTypeDescriptor()
public MethodTypeSignature getTypeSignature()
public MethodTypeSignature getTypeSignatureOrTypeDescriptor()
public boolean isConstructor()
"<init>"
. This returns false for private static class initializer blocks, which are named
"<clinit>"
.public boolean isPublic()
public boolean isStatic()
public boolean isFinal()
public boolean isSynchronized()
public boolean isBridge()
public boolean isVarArgs()
public boolean isNative()
public MethodParameterInfo[] getParameterInfo()
MethodParameterInfo
objects for the method parameters, one per parameter.public AnnotationInfoList getAnnotationInfo()
AnnotationInfo
objects, or the empty list if none.protected String getClassName()
ClassInfo
object for the
defining class.protected void getClassNamesFromTypeDescriptors(Set<String> classNames)
public boolean equals(Object obj)
public int hashCode()
public int compareTo(MethodInfo other)
compareTo
in interface Comparable<MethodInfo>
Copyright © 2018. All rights reserved.