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
-
-
Field Summary
-
Fields inherited from class aQute.bnd.osgi.Clazz.FieldDef
descriptor, name
-
Fields inherited from class aQute.bnd.osgi.Clazz.ElementDef
attributes
-
-
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.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>
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
getContainingClass, getDescriptor, getName, getType, setConstant, setDeprecated
-
Methods inherited from class aQute.bnd.osgi.Clazz.ElementDef
annotationInfos, annotations, attribute, 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:
getPrototype
in classClazz.FieldDef
-
isBridge
public boolean isBridge()
-
getGenericReturnType
public java.lang.String getGenericReturnType()
- Overrides:
getGenericReturnType
in classClazz.FieldDef
-
getParameters
public Clazz.MethodParameter[] getParameters()
-
getConstant
public java.lang.Object getConstant()
- Overrides:
getConstant
in 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:
typeAnnotationInfos
in classClazz.ElementDef
-
elementType
Annotation.ElementType elementType()
- Overrides:
elementType
in classClazz.FieldDef
-
-