public interface JavaMethod extends TrustedInterface
constant pools
.Modifier and Type | Method and Description |
---|---|
default String |
format(String format)
Gets a string for this method formatted according to a given format specification.
|
JavaType |
getDeclaringClass()
Returns the
JavaType object representing the class or interface that declares this
method. |
String |
getName()
Returns the name of this method.
|
Signature |
getSignature()
Returns the signature of this method.
|
JavaType getDeclaringClass()
JavaType
object representing the class or interface that declares this
method.Signature getSignature()
default String format(String format) throws IllegalFormatException
Specifier | Description | Example(s) ----------+------------------------------------------------------------------------------------------ 'R' | Qualified return type | "int" "java.lang.String" 'r' | Unqualified return type | "int" "String" 'H' | Qualified holder | "java.util.Map.Entry" 'h' | Unqualified holder | "Entry" 'n' | Method name | "add" 'P' | Qualified parameter types, separated by ', ' | "int, java.lang.String" 'p' | Unqualified parameter types, separated by ', ' | "int, String" 'f' | Indicator if method is unresolved, static or virtual | "unresolved" "static" "virtual" '%' | A '%' character | "%"
format
- a format specificationformat
IllegalFormatException
- if an illegal specifier is encountered in format