public class Clazz extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Clazz.Assoc
Deprecated.
|
class |
Clazz.ClassConstant
Deprecated.
|
class |
Clazz.Def |
class |
Clazz.FieldDef |
static class |
Clazz.JAVA |
class |
Clazz.MethodDef |
static class |
Clazz.MethodParameter |
static class |
Clazz.QUERY |
class |
Clazz.TypeDef |
| Modifier and Type | Field and Description |
|---|---|
static EnumSet<Clazz.QUERY> |
HAS_ARGUMENT |
static Comparator<Clazz> |
NAME_COMPARATOR |
static int |
TYPEUSE_INDEX_NONE |
static int |
TYPEUSE_TARGET_INDEX_EXTENDS |
| Constructor and Description |
|---|
Clazz(Analyzer analyzer,
String path,
Resource resource) |
public static final EnumSet<Clazz.QUERY> HAS_ARGUMENT
public static final Comparator<Clazz> NAME_COMPARATOR
public static final int TYPEUSE_INDEX_NONE
public static final int TYPEUSE_TARGET_INDEX_EXTENDS
public Set<Descriptors.TypeRef> parseClassFile() throws Exception
Exceptionpublic Set<Descriptors.TypeRef> parseClassFile(InputStream in) throws Exception
Exceptionpublic Set<Descriptors.TypeRef> parseClassFileWithCollector(ClassDataCollector cd) throws Exception
Exceptionpublic Set<Descriptors.TypeRef> parseClassFile(InputStream in, ClassDataCollector cd) throws Exception
Exceptionpublic Stream<Clazz.FieldDef> fields()
public Stream<Clazz.MethodDef> methods()
@Deprecated public void parseDescriptor(String descriptor, int modifiers)
#referTo(TypeRef, int) for any types found therein.descriptor - The to be parsed descriptormodifiers - public Set<Descriptors.PackageRef> getReferred()
public String getAbsolutePath()
@Deprecated public void reset()
public boolean is(Clazz.QUERY query, Instruction instr, Analyzer analyzer) throws Exception
Exceptionpublic boolean isPublic()
public boolean isProtected()
public boolean isEnum()
public boolean isSynthetic()
public boolean isModule()
public Clazz.JAVA getFormat()
public boolean isInterface()
public boolean isAbstract()
public boolean hasPublicNoArgsConstructor()
public int getAccess()
@Deprecated public void setInnerAccess(int access)
public Stream<Annotation> annotations(String binaryNameFilter)
public Stream<TypeAnnotation> typeAnnotations(String binaryNameFilter)
public Descriptors.TypeRef getClassName()
public boolean isInnerClass()
@Deprecated public Clazz.MethodDef getMethodDef(int access, String name, String descriptor)
public Descriptors.TypeRef getSuper()
public String getFQN()
public Descriptors.TypeRef[] getInterfaces()
public List<Descriptors.TypeRef> interfaces()
public Set<Descriptors.TypeRef> annotations()
public boolean isFinal()
@Deprecated public void setDeprecated(boolean b)
public boolean isDeprecated()
public boolean isAnnotation()
public Set<Descriptors.PackageRef> getAPIUses()
public Clazz.TypeDef getExtends(Descriptors.TypeRef type)
public Clazz.TypeDef getImplements(Descriptors.TypeRef type)
public String getClassSignature()
public String getSourceFile()
public Resource getResource()
Copyright © 2021. All rights reserved.