public class Clazz.MethodDef extends Clazz.FieldDef
descriptor, name
attributes
Constructor and Description |
---|
MethodDef(int access,
java.lang.String method,
java.lang.String descriptor)
Deprecated.
|
MethodDef(MethodInfo methodInfo) |
Modifier and Type | Method and Description |
---|---|
(package private) Annotation.ElementType |
elementType() |
java.lang.Object |
getConstant() |
java.lang.String |
getGenericReturnType() |
Clazz.MethodParameter[] |
getParameters() |
Descriptors.TypeRef[] |
getPrototype() |
boolean |
isBridge() |
boolean |
isConstructor() |
boolean |
isFinal() |
(package private) <A extends ParameterAnnotationsAttribute> |
parameterAnnotationInfos(java.lang.Class<A> attributeType) |
private java.util.stream.Stream<ParameterAnnotation> |
parameterAnnotations(ParameterAnnotationInfo parameterAnnotationInfo,
java.util.function.Predicate<AnnotationInfo> matches,
Annotation.ElementType elementType,
java.lang.annotation.RetentionPolicy policy) |
java.util.stream.Stream<ParameterAnnotation> |
parameterAnnotations(java.lang.String binaryNameFilter) |
(package private) <A extends TypeAnnotationsAttribute> |
typeAnnotationInfos(java.lang.Class<A> attributeType)
We must also look in the method's Code attribute for type
annotations.
|
getContainingClass, getDescriptor, getName, getType, setConstant, setDeprecated
annotationInfos, annotations, attribute, attributes, getSignature, isDeprecated, matches, toString, typeAnnotations
getAccess, getAnnotations, getClazz, getOwnerType, isAbstract, isAnnotation, isEnum, isInterface, isModule, isNative, isPrivate, isProtected, isPublic, isStatic, isSynthetic, isTransient, isVolatile
@Deprecated public MethodDef(int access, java.lang.String method, java.lang.String descriptor)
public MethodDef(MethodInfo methodInfo)
public boolean isConstructor()
public Descriptors.TypeRef[] getPrototype()
getPrototype
in class Clazz.FieldDef
public boolean isBridge()
public java.lang.String getGenericReturnType()
getGenericReturnType
in class Clazz.FieldDef
public Clazz.MethodParameter[] getParameters()
public java.lang.Object getConstant()
getConstant
in class Clazz.FieldDef
<A extends ParameterAnnotationsAttribute> java.util.stream.Stream<ParameterAnnotationInfo> parameterAnnotationInfos(java.lang.Class<A> attributeType)
public java.util.stream.Stream<ParameterAnnotation> parameterAnnotations(java.lang.String binaryNameFilter)
private java.util.stream.Stream<ParameterAnnotation> parameterAnnotations(ParameterAnnotationInfo parameterAnnotationInfo, java.util.function.Predicate<AnnotationInfo> matches, Annotation.ElementType elementType, java.lang.annotation.RetentionPolicy policy)
<A extends TypeAnnotationsAttribute> java.util.stream.Stream<TypeAnnotationInfo> typeAnnotationInfos(java.lang.Class<A> attributeType)
typeAnnotationInfos
in class Clazz.ElementDef
Annotation.ElementType elementType()
elementType
in class Clazz.FieldDef