Package aQute.bnd.osgi
Class Clazz.ElementDef
- java.lang.Object
-
- aQute.bnd.osgi.Clazz.Def
-
- aQute.bnd.osgi.Clazz.ElementDef
-
- Direct Known Subclasses:
Clazz.ClassDef
,Clazz.CodeDef
,Clazz.FieldDef
- Enclosing class:
- Clazz
abstract class Clazz.ElementDef extends Clazz.Def
-
-
Field Summary
Fields Modifier and Type Field Description private Attribute[]
attributes
-
Constructor Summary
Constructors Constructor Description ElementDef(int access, Attribute[] attributes)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) <A extends AnnotationsAttribute>
java.util.stream.Stream<AnnotationInfo>annotationInfos(java.lang.Class<A> attributeType)
java.util.stream.Stream<Annotation>
annotations(java.lang.String binaryNameFilter)
(package private) <A extends Attribute>
java.util.Optional<A>attribute(java.lang.Class<A> attributeType)
(package private) Attribute[]
attributes()
(package private) <A extends Attribute>
java.util.stream.Stream<A>attributes(java.lang.Class<A> attributeType)
(package private) abstract Annotation.ElementType
elementType()
java.lang.String
getName()
Descriptors.TypeRef[]
getPrototype()
java.lang.String
getSignature()
Descriptors.TypeRef
getType()
boolean
isDeprecated()
(package private) java.util.function.Predicate<AnnotationInfo>
matches(java.lang.String binaryNameFilter)
java.lang.String
toString()
(package private) <A extends TypeAnnotationsAttribute>
java.util.stream.Stream<TypeAnnotationInfo>typeAnnotationInfos(java.lang.Class<A> attributeType)
java.util.stream.Stream<TypeAnnotation>
typeAnnotations(java.lang.String binaryNameFilter)
-
Methods inherited from class aQute.bnd.osgi.Clazz.Def
getAccess, getAnnotations, getClazz, getOwnerType, isAbstract, isAnnotation, isEnum, isFinal, isInterface, isModule, isNative, isPrivate, isProtected, isPublic, isStatic, isSynthetic, isTransient, isVolatile
-
-
-
-
Field Detail
-
attributes
private final Attribute[] attributes
-
-
Constructor Detail
-
ElementDef
ElementDef(int access, Attribute[] attributes)
-
-
Method Detail
-
attributes
Attribute[] attributes()
-
isDeprecated
public boolean isDeprecated()
-
getSignature
public java.lang.String getSignature()
-
attributes
<A extends Attribute> java.util.stream.Stream<A> attributes(java.lang.Class<A> attributeType)
-
attribute
<A extends Attribute> java.util.Optional<A> attribute(java.lang.Class<A> attributeType)
-
annotationInfos
<A extends AnnotationsAttribute> java.util.stream.Stream<AnnotationInfo> annotationInfos(java.lang.Class<A> attributeType)
-
annotations
public java.util.stream.Stream<Annotation> annotations(java.lang.String binaryNameFilter)
-
matches
java.util.function.Predicate<AnnotationInfo> matches(java.lang.String binaryNameFilter)
-
typeAnnotationInfos
<A extends TypeAnnotationsAttribute> java.util.stream.Stream<TypeAnnotationInfo> typeAnnotationInfos(java.lang.Class<A> attributeType)
-
typeAnnotations
public java.util.stream.Stream<TypeAnnotation> typeAnnotations(java.lang.String binaryNameFilter)
-
getType
public Descriptors.TypeRef getType()
-
getPrototype
public Descriptors.TypeRef[] getPrototype()
- Specified by:
getPrototype
in classClazz.Def
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
elementType
abstract Annotation.ElementType elementType()
-
-