Modifier and Type | Method and Description |
---|---|
AnnotationValue |
getAnnotationDefaultValue()
If this method is on an annotation interface, answer the default value of
the method.
|
ClassInfo |
getDeclaringClass()
Answer the info object of the class which declared this method.
|
java.lang.String |
getDescription() |
java.util.List<java.lang.String> |
getExceptionTypeNames()
Answer the set of names of the exceptions which may be thrown by
this method.
|
java.util.List<? extends ClassInfo> |
getExceptionTypes()
Answer the class info objects of the exceptions which may be thrown by
this method.
|
java.util.List<java.util.List<? extends AnnotationInfo>> |
getParameterAnnotations()
Answer the in-order parameter annotation collections of
parameters of this method.
|
java.util.List<java.lang.String> |
getParameterTypeNames()
Answer the in-order names of the types of the parameters of this method.
|
java.util.List<? extends ClassInfo> |
getParameterTypes()
Answer the in-order types of the parameters of this method.
|
java.lang.String |
getQualifiedName()
Answer the qualified name of the receiver.
|
ClassInfo |
getReturnType()
Answer the class info object of the return type of this method.
|
java.lang.String |
getReturnTypeName()
Answer the name of the return type of this method.
|
java.lang.String |
getSignature()
Answer a string encoding the signature of this method.
|
getAnnotation, getAnnotation, getAnnotations, getDeclaredAnnotation, getDeclaredAnnotation, getDeclaredAnnotations, getHashText, getInfoStore, getModifiers, getName, isAnnotationPresent, isAnnotationPresent, isAnnotationWithin, isDeclaredAnnotationPresent, isDeclaredAnnotationPresent, isDeclaredAnnotationWithin, isPackagePrivate, isPrivate, isProtected, isPublic, log
ClassInfo getDeclaringClass()
Answer the info object of the class which declared this method.
java.lang.String getQualifiedName()
Answer the qualified name of the receiver. For methods, the qualified name is
the declaring class name plus .
plus the method name.
Qualified names provide unique IDs for packages, classes, methods, and methods. The names of annotations are the names of an annotation class, and are not unique.
getQualifiedName
in interface Info
java.util.List<java.lang.String> getParameterTypeNames()
Answer the in-order names of the types of the parameters of this method.
(Note: These are the parameter
getParameterTypes()
java.util.List<? extends ClassInfo> getParameterTypes()
Answer the in-order types of the parameters of this method.
The in-order types of the parameters of this method.
java.util.List<java.lang.String> getExceptionTypeNames()
Answer the set of names of the exceptions which may be thrown by this method.
#getExceptionNames()
java.util.List<? extends ClassInfo> getExceptionTypes()
Answer the class info objects of the exceptions which may be thrown by this method. (No order of the returned class info objects is guaranteed.)
java.lang.String getReturnTypeName()
Answer the name of the return type of this method.
For a non-primitive non-void return type, the java qualified class name of the return type is returned. For primitive types, a singleton string is returned, per the java descriptor of the return type:
ClassInfo getReturnType()
Answer the class info object of the return type of this method.
Note that a non-null class info object is returned in all cases,
including void
. (void.class
is a valid
java class).
java.lang.String getSignature()
Answer a string encoding the signature of this method. This is a collation of the qualified name of the method, and of a parenthesized and comma delimited list of the types of the parameters of the method.
For example: methodWithEmptyParameters()
,
methodWithTwoParameters(java.lang.String, myPackage.myClass)
.
java.lang.String getDescription()
java.util.List<java.util.List<? extends AnnotationInfo>> getParameterAnnotations()
Answer the in-order parameter annotation collections of parameters of this method.
AnnotationValue getAnnotationDefaultValue()
If this method is on an annotation interface, answer the default value of the method. If no default is defined, or if this method is not on an annotation interface, answer null.