Package aQute.bnd.osgi
Class Clazz
- java.lang.Object
-
- aQute.bnd.osgi.Clazz
-
public class Clazz extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Clazz.Def
class
Clazz.FieldDef
static class
Clazz.JAVA
class
Clazz.MemberDef
class
Clazz.MethodDef
static class
Clazz.MethodParameter
static class
Clazz.QUERY
class
Clazz.TypeDef
-
Field Summary
Fields Modifier and Type Field Description static java.util.EnumSet<Clazz.QUERY>
HAS_ARGUMENT
static java.util.Comparator<Clazz>
NAME_COMPARATOR
static int
TYPEUSE_INDEX_NONE
static int
TYPEUSE_TARGET_INDEX_EXTENDS
-
Method Summary
-
-
-
Field Detail
-
HAS_ARGUMENT
public static final java.util.EnumSet<Clazz.QUERY> HAS_ARGUMENT
-
NAME_COMPARATOR
public static final java.util.Comparator<Clazz> NAME_COMPARATOR
-
TYPEUSE_INDEX_NONE
public static final int TYPEUSE_INDEX_NONE
- See Also:
- Constant Field Values
-
TYPEUSE_TARGET_INDEX_EXTENDS
public static final int TYPEUSE_TARGET_INDEX_EXTENDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
parseClassFile
public java.util.Set<Descriptors.TypeRef> parseClassFile() throws java.lang.Exception
- Throws:
java.lang.Exception
-
parseClassFile
public java.util.Set<Descriptors.TypeRef> parseClassFile(java.io.InputStream in) throws java.lang.Exception
- Throws:
java.lang.Exception
-
parseClassFileWithCollector
public java.util.Set<Descriptors.TypeRef> parseClassFileWithCollector(ClassDataCollector cd) throws java.lang.Exception
- Throws:
java.lang.Exception
-
parseClassFile
public java.util.Set<Descriptors.TypeRef> parseClassFile(java.io.InputStream in, ClassDataCollector cd) throws java.lang.Exception
- Throws:
java.lang.Exception
-
fields
public java.util.stream.Stream<Clazz.FieldDef> fields()
-
methods
public java.util.stream.Stream<Clazz.MethodDef> methods()
-
getReferred
public java.util.Set<Descriptors.PackageRef> getReferred()
-
getAbsolutePath
public java.lang.String getAbsolutePath()
-
is
public boolean is(Clazz.QUERY query, Instruction instr, Analyzer analyzer) throws java.lang.Exception
- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isPublic
public boolean isPublic()
-
isProtected
public boolean isProtected()
-
isEnum
public boolean isEnum()
-
isSynthetic
public boolean isSynthetic()
-
isModule
public boolean isModule()
-
isPackageInfo
public boolean isPackageInfo()
-
getFormat
public Clazz.JAVA getFormat()
-
objectDescriptorToFQN
public static java.lang.String objectDescriptorToFQN(java.lang.String string)
-
unCamel
public static java.lang.String unCamel(java.lang.String id)
-
isInterface
public boolean isInterface()
-
isAbstract
public boolean isAbstract()
-
hasPublicNoArgsConstructor
public boolean hasPublicNoArgsConstructor()
-
getAccess
public int getAccess()
-
annotations
public java.util.stream.Stream<Annotation> annotations(java.lang.String binaryNameFilter)
-
typeAnnotations
public java.util.stream.Stream<TypeAnnotation> typeAnnotations(java.lang.String binaryNameFilter)
-
getClassName
public Descriptors.TypeRef getClassName()
-
isInnerClass
public boolean isInnerClass()
-
getSuper
public Descriptors.TypeRef getSuper()
-
getFQN
public java.lang.String getFQN()
-
getInterfaces
public Descriptors.TypeRef[] getInterfaces()
-
interfaces
public java.util.List<Descriptors.TypeRef> interfaces()
-
annotations
public java.util.Set<Descriptors.TypeRef> annotations()
-
isFinal
public boolean isFinal()
-
isDeprecated
public boolean isDeprecated()
-
isAnnotation
public boolean isAnnotation()
-
getAPIUses
public java.util.Set<Descriptors.PackageRef> getAPIUses()
-
getExtends
public Clazz.TypeDef getExtends(Descriptors.TypeRef type)
-
getImplements
public Clazz.TypeDef getImplements(Descriptors.TypeRef type)
-
getClassSignature
public java.lang.String getClassSignature()
-
getSourceFile
public java.lang.String getSourceFile()
-
getDefaults
public java.util.Map<java.lang.String,java.lang.Object> getDefaults() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getResource
public Resource getResource()
-
-