Class ClassFile
java.lang.Object
org.benf.cfr.reader.entities.ClassFile
- All Implemented Interfaces:
Dumpable, TypeUsageCollectable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComment(String comment) voidaddComment(DecompilerComment comment) addFakeMethod(Object key, String nameHint, UnaryFunction<String, FakeMethod> methodFactory) voidanalyseTop(DCCommonState dcCommonState, TypeUsageCollectingDumper typeUsageCollectingDumper) voidcollectTypeUsages(TypeUsageCollector collector) voidvoidvoidvoiddumpReceiverClassIdentity(List<AnnotationTableTypeEntry> recieverAnnotations, Dumper d) static JavaTypeInstancegetAnonymousTypeBase(ClassFile classFile) getFieldByName(String name, JavaTypeInstance type) getGenericTypeBinder(JavaGenericRefTypeInstance boundGeneric) getMethodByName(String name) getMethodByPrototype(MethodPrototype prototype) getMethodByPrototypeOrNull(MethodPrototype prototype) getMethodsByNameOrNull(String name) getOverloadMethodSet(MethodPrototype prototype) booleanhasAccessibleField(String name, JavaRefTypeInstance maybeCaller) booleanbooleanhasLocalField(String name) booleanbooleanvoidloadInnerClasses(DCCommonState dcCommonState) voidvoidnoteAnonymousUse(ConstructorInvokationAnonymousInner anoynmousInner) voidnoteMethodUse(ConstructorInvokationSimple constructorCall) voidvoidsetDumpHelper(ClassFileDumper dumpHelper) booleantestAccessFlag(AccessFlag accessFlag) toString()
-
Constructor Details
-
ClassFile
-
-
Method Details
-
getUsePath
-
isInterface
public boolean isInterface() -
addComment
-
addComment
-
getNullableDecompilerComments
-
ensureDecompilerComments
-
addFakeMethod
public FakeMethod addFakeMethod(Object key, String nameHint, UnaryFunction<String, FakeMethod> methodFactory) -
getAllClassTypes
-
collectTypeUsages
- Specified by:
collectTypeUsagesin interfaceTypeUsageCollectable
-
setDumpHelper
-
markHiddenInnerClass
public void markHiddenInnerClass() -
getClassFileVersion
-
isInnerClass
public boolean isInnerClass() -
getConstantPool
-
testAccessFlag
-
hasFormalTypeParameters
public boolean hasFormalTypeParameters() -
hasLocalField
-
hasAccessibleField
-
getFieldByName
public ClassFileField getFieldByName(String name, JavaTypeInstance type) throws NoSuchFieldException - Throws:
NoSuchFieldException
-
getFields
-
getMethods
-
getOverloadMethodSet
-
getMethodByPrototype
- Throws:
NoSuchMethodException
-
getMethodByPrototypeOrNull
-
getSingleMethodByNameOrNull
-
getMethodsByNameOrNull
-
getMethodByName
- Throws:
NoSuchMethodException
-
getConstructors
-
getBootstrapMethods
-
getThisClassConstpoolEntry
-
loadInnerClasses
-
analyseTop
public void analyseTop(DCCommonState dcCommonState, TypeUsageCollectingDumper typeUsageCollectingDumper) -
releaseCode
public void releaseCode() -
getClassType
-
getRefClassType
-
getBaseClassType
-
getClassSignature
-
getAccessFlags
-
dumpNamedInnerClasses
-
dump
-
dumpAsInlineClass
-
getFilePath
-
toString
-
dumpReceiverClassIdentity
-
dumpPermitted
-
dumpClassIdentity
-
getBindingSupers
-
getGenericTypeBinder
-
noteAnonymousUse
-
noteMethodUse
-
getAnonymousUsages
-
getMethodUsages
-
getAnonymousTypeBase
-
getAttributes
-
getMethodFakes
-