public interface MethodInfo
Modifier and Type | Method and Description |
---|---|
int |
getAccessFlags()
Returns methods access flags.
|
int |
getAllArgumentsSize()
Returns the size of all arguments on stack.
|
default AnnotationInfo |
getAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> an)
Returns
true if method is annotated with provided annotation. |
AnnotationInfo[] |
getAnnotations()
Returns annotation information, if there is any.
|
TypeInfo |
getArgument(int index)
Returns methods argument (1-indexed).
|
int |
getArgumentOffset(int index)
Returns bytecode offset of an argument in local variables.
|
int |
getArgumentsCount()
Returns the number of methods arguments.
|
ClassInfo |
getClassInfo()
Returns target
class informations . |
java.lang.String |
getClassname()
Returns bytecode-like class name, where packages are separated by a slash.
|
java.lang.String |
getCleanSignature()
Returns a "clean" signature, that is ready for the comparison.
|
java.lang.String |
getDeclaration()
Returns full java-like declaration of method's arguments and return type.
|
java.lang.String |
getDeclaredClassName()
Returns declared class name for inner methods or
classname for top-level methods. |
java.lang.String |
getDescription()
Returns bytecode-like method description.
|
java.lang.String[] |
getExceptions()
Returns array of exceptions or
null if no exception is declared. |
default java.lang.String |
getExceptionsAsString()
Returns exceptions as a comma-seaprated string.
|
java.lang.String |
getMethodName()
Returns method name.
|
TypeInfo |
getReturnType()
Returns return
type information . |
java.lang.String |
getSignature()
Returns java-like method signature of
description . |
default boolean |
hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation>... an)
Returns
true if method is annotated with one of provided annotation. |
default boolean |
hasNoArguments()
Returns
true if method has no argument. |
default boolean |
hasNoReturnValue()
Returns
true if method's return type is void . |
default boolean |
hasOneArgument()
Returns
true if method has only one argument. |
default boolean |
hasReturnValue()
Returns
true if method has a return type. |
default boolean |
isPrivateMethod()
Returns
true if method is private. |
default boolean |
isPublicMethod()
Returns
true if method is public. |
default boolean |
isRootMethod()
Returns
true if method is declared in Object class (root class). |
boolean |
isTopLevelMethod()
Returns
true if method is declared in top-level class. |
default boolean |
matchClassName(java.lang.String wildcard)
Match class name to provided
Wildcard pattern. |
default boolean |
matchMethodName(java.lang.String wildcard)
Match method name to provided
Wildcard pattern. |
java.lang.String getDeclaration()
(long, java.lang.Integer)int
.getSignature()
TypeInfo getReturnType()
type information
.default java.lang.String getExceptionsAsString()
getExceptions()
java.lang.String[] getExceptions()
null
if no exception is declared.java.lang.String getSignature()
description
.
Does not contain any generic information.java.lang.String getCleanSignature()
java.lang.String getMethodName()
int getArgumentsCount()
int getArgumentOffset(int index)
TypeInfo getArgument(int index)
int getAllArgumentsSize()
long
.int getAccessFlags()
java.lang.String getClassname()
org/jodd/Jodd
java.lang.String getDescription()
getSignature()
AnnotationInfo[] getAnnotations()
java.lang.String getDeclaredClassName()
classname
for top-level methods.boolean isTopLevelMethod()
true
if method is declared in top-level class.ClassInfo getClassInfo()
class informations
.default boolean isPublicMethod()
true
if method is public.default boolean isPrivateMethod()
true
if method is private.default boolean hasNoArguments()
true
if method has no argument.default boolean hasOneArgument()
true
if method has only one argument.default boolean isRootMethod()
true
if method is declared in Object
class (root class).default boolean hasNoReturnValue()
true
if method's return type is void
.default boolean hasReturnValue()
true
if method has a return type.default boolean matchMethodName(java.lang.String wildcard)
Wildcard
pattern.default boolean matchClassName(java.lang.String wildcard)
Wildcard
pattern.default boolean hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation>... an)
true
if method is annotated with one of provided annotation.default AnnotationInfo getAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> an)
true
if method is annotated with provided annotation.Copyright © 2003-present Jodd Team