Package aQute.bnd.osgi
Class Clazz.MethodDef
- java.lang.Object
-
- aQute.bnd.osgi.Clazz.Def
-
- aQute.bnd.osgi.Clazz.ElementDef
-
- aQute.bnd.osgi.Clazz.FieldDef
-
- aQute.bnd.osgi.Clazz.MethodDef
-
- Enclosing class:
- Clazz
public class Clazz.MethodDef extends Clazz.FieldDef
-
-
Constructor Summary
Constructors Constructor Description MethodDef(int access, java.lang.String method, java.lang.String descriptor)Deprecated.MethodDef(MethodInfo methodInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Annotation.ElementTypeelementType()java.lang.ObjectgetConstant()java.lang.StringgetGenericReturnType()Clazz.MethodParameter[]getParameters()Descriptors.TypeRef[]getPrototype()booleanisBridge()booleanisConstructor()booleanisFinal()(package private) <A extends ParameterAnnotationsAttribute>
java.util.stream.Stream<ParameterAnnotationInfo>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>
java.util.stream.Stream<TypeAnnotationInfo>typeAnnotationInfos(java.lang.Class<A> attributeType)We must also look in the method's Code attribute for type annotations.-
Methods inherited from class aQute.bnd.osgi.Clazz.FieldDef
descriptor, getContainingClass, getDescriptor, getName, getType, setConstant, setDeprecated
-
Methods inherited from class aQute.bnd.osgi.Clazz.ElementDef
annotationInfos, annotations, attribute, attributes, attributes, getSignature, isDeprecated, matches, toString, typeAnnotations
-
Methods inherited from class aQute.bnd.osgi.Clazz.Def
getAccess, getAnnotations, getClazz, getOwnerType, isAbstract, isAnnotation, isEnum, isInterface, isModule, isNative, isPrivate, isProtected, isPublic, isStatic, isSynthetic, isTransient, isVolatile
-
-
-
-
Constructor Detail
-
MethodDef
@Deprecated public MethodDef(int access, java.lang.String method, java.lang.String descriptor)Deprecated.
-
MethodDef
public MethodDef(MethodInfo methodInfo)
-
-
Method Detail
-
isConstructor
public boolean isConstructor()
-
getPrototype
public Descriptors.TypeRef[] getPrototype()
- Overrides:
getPrototypein classClazz.FieldDef
-
isBridge
public boolean isBridge()
-
getGenericReturnType
public java.lang.String getGenericReturnType()
- Overrides:
getGenericReturnTypein classClazz.FieldDef
-
getParameters
public Clazz.MethodParameter[] getParameters()
-
getConstant
public java.lang.Object getConstant()
- Overrides:
getConstantin classClazz.FieldDef
-
parameterAnnotationInfos
<A extends ParameterAnnotationsAttribute> java.util.stream.Stream<ParameterAnnotationInfo> parameterAnnotationInfos(java.lang.Class<A> attributeType)
-
parameterAnnotations
public java.util.stream.Stream<ParameterAnnotation> parameterAnnotations(java.lang.String binaryNameFilter)
-
parameterAnnotations
private java.util.stream.Stream<ParameterAnnotation> parameterAnnotations(ParameterAnnotationInfo parameterAnnotationInfo, java.util.function.Predicate<AnnotationInfo> matches, Annotation.ElementType elementType, java.lang.annotation.RetentionPolicy policy)
-
typeAnnotationInfos
<A extends TypeAnnotationsAttribute> java.util.stream.Stream<TypeAnnotationInfo> typeAnnotationInfos(java.lang.Class<A> attributeType)
We must also look in the method's Code attribute for type annotations.- Overrides:
typeAnnotationInfosin classClazz.ElementDef
-
elementType
Annotation.ElementType elementType()
- Overrides:
elementTypein classClazz.FieldDef
-
-