public class MethodInfo extends Object
Constructor and Description |
---|
MethodInfo(String methodName,
int modifiers,
String typeDescriptor,
List<String> annotationNames,
boolean isConstructor) |
Modifier and Type | Method and Description |
---|---|
int |
getAccessFlags()
Returns the access flags of the method.
|
List<String> |
getAnnotationNames()
Returns the names of annotations on the method, or the empty list if none.
|
String |
getMethodName()
Returns the name of the method.
|
String |
getModifiers()
Get the method modifiers as a string, e.g.
|
List<String> |
getParameterTypeStrs()
Returns the parameter types for the method in string representation, e.g.
|
String |
getReturnTypeStr()
Returns the return type for the method in string representation, e.g.
|
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 |
isPackagePrivate()
Returns true if this method is package-private.
|
boolean |
isPrivate()
Returns true if this method is private.
|
boolean |
isProtected()
Returns true if this method is protected.
|
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() |
public String getModifiers()
public boolean isConstructor()
public String getMethodName()
public int getAccessFlags()
public String getReturnTypeStr()
public List<String> getParameterTypeStrs()
public boolean isPublic()
public boolean isPrivate()
public boolean isProtected()
public boolean isPackagePrivate()
public boolean isStatic()
public boolean isFinal()
public boolean isSynchronized()
public boolean isBridge()
public boolean isVarArgs()
public boolean isNative()
public List<String> getAnnotationNames()
Copyright © 2017. All rights reserved.