public class ClassFile extends Object implements Dumpable, TypeUsageCollectable
Constructor and Description |
---|
ClassFile(ByteData data,
String usePath,
DCCommonState dcCommonState) |
public ClassFile(ByteData data, String usePath, DCCommonState dcCommonState)
public String getUsePath()
public boolean isInterface()
public void addComment(DecompilerComment comment)
public void addComment(String comment)
public DecompilerComments getNullableDecompilerComments()
public DecompilerComments ensureDecompilerComments()
public FakeMethod addFakeMethod(Object key, String nameHint, UnaryFunction<String,FakeMethod> methodFactory)
public List<JavaTypeInstance> getAllClassTypes()
public void collectTypeUsages(TypeUsageCollector collector)
collectTypeUsages
in interface TypeUsageCollectable
public void setDumpHelper(ClassFileDumper dumpHelper)
public void markHiddenInnerClass()
public ClassFileVersion getClassFileVersion()
public boolean isInnerClass()
public ConstantPool getConstantPool()
public boolean testAccessFlag(AccessFlag accessFlag)
public boolean hasFormalTypeParameters()
public boolean hasLocalField(String name)
public boolean hasAccessibleField(String name, JavaRefTypeInstance maybeCaller)
public ClassFileField getFieldByName(String name, JavaTypeInstance type) throws NoSuchFieldException
NoSuchFieldException
public List<ClassFileField> getFields()
public OverloadMethodSet getOverloadMethodSet(MethodPrototype prototype)
public Method getMethodByPrototype(MethodPrototype prototype) throws NoSuchMethodException
NoSuchMethodException
public Method getMethodByPrototypeOrNull(MethodPrototype prototype)
public List<Method> getMethodByName(String name) throws NoSuchMethodException
NoSuchMethodException
public AttributeBootstrapMethods getBootstrapMethods()
public ConstantPoolEntryClass getThisClassConstpoolEntry()
public void loadInnerClasses(DCCommonState dcCommonState)
public void analyseTop(DCCommonState dcCommonState, TypeUsageCollectingDumper typeUsageCollectingDumper)
public void releaseCode()
public JavaTypeInstance getClassType()
public JavaRefTypeInstance getRefClassType()
public JavaTypeInstance getBaseClassType()
public ClassSignature getClassSignature()
public Set<AccessFlag> getAccessFlags()
public void dumpNamedInnerClasses(Dumper d)
public String getFilePath()
public void dumpReceiverClassIdentity(List<AnnotationTableTypeEntry> recieverAnnotations, Dumper d)
public void dumpClassIdentity(Dumper d)
public BindingSuperContainer getBindingSupers()
public GenericTypeBinder getGenericTypeBinder(JavaGenericRefTypeInstance boundGeneric)
public void noteAnonymousUse(ConstructorInvokationAnonymousInner anoynmousInner)
public void noteMethodUse(ConstructorInvokationSimple constructorCall)
public List<ConstructorInvokationAnonymousInner> getAnonymousUsages()
public List<ConstructorInvokationSimple> getMethodUsages()
public static JavaTypeInstance getAnonymousTypeBase(ClassFile classFile)
public AttributeMap getAttributes()
public List<FakeMethod> getMethodFakes()
Copyright © 2011-2021. All Rights Reserved.