Class Method
java.lang.Object
org.benf.cfr.reader.entities.Method
- All Implemented Interfaces:
KnowsRawSize, TypeUsageCollectable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EnumSet<AccessFlagMethod> private final AttributeMapprivate final ClassFileprivate final AttributeCodeprivate DecompilerCommentsprivate final ConstantPoolprivate final intprivate Method.Visibilityprivate Method.MethodConstructorprivate booleanprivate final longprivate final Map<JavaRefTypeInstance, String> private final MethodPrototypeprivate static final longprivate static final longprivate static final longprivate static final longprivate static final longprivate static final AnnotationTableEntryprivate Set<JavaTypeInstance> private final VariableNamer -
Constructor Summary
ConstructorsConstructorDescriptionMethod(ByteData raw, ClassFile classFile, ConstantPool cp, DCCommonState dcCommonState, ClassFileVersion classFileVersion) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddComment(DecompilerComment comment) (package private) voidanalyse()private static booleancheckSigProto(MethodPrototype desproto, MethodPrototype sigproto, boolean isEnumConstructor, boolean isInnerConstructor) voidcollectTypeUsages(TypeUsageCollector collector) booleancopyLocalClassesFrom(Method other) voidprivate voidprivate voiddumpMethodAnnotations(Dumper d, List<AnnotationTableEntry> nullableDeclAnnotations) private voiddumpSignatureText(boolean asClass, Dumper d) private static voidfixupInnerClassSignature(MethodPrototype descriptor, MethodPrototype signature) private MethodPrototypegenerateMethodPrototype(Options options, String initialName, Method.MethodConstructor constructorFlag) private List<JavaTypeInstance> private List<JavaTypeInstance> getName()long(package private) AttributeSignaturebooleanbooleanvoidhideDead()voidbooleanbooleanisVisibleTo(JavaRefTypeInstance maybeCaller) (package private) voidvoidmarkUsedLocalClassType(JavaTypeInstance javaTypeInstance) voidmarkUsedLocalClassType(JavaTypeInstance javaTypeInstance, String suggestedName) (package private) voidvoidsetComments(DecompilerComments comments) voidbooleantoString()
-
Field Details
-
OFFSET_OF_ACCESS_FLAGS
private static final long OFFSET_OF_ACCESS_FLAGS- See Also:
-
OFFSET_OF_NAME_INDEX
private static final long OFFSET_OF_NAME_INDEX- See Also:
-
OFFSET_OF_DESCRIPTOR_INDEX
private static final long OFFSET_OF_DESCRIPTOR_INDEX- See Also:
-
OFFSET_OF_ATTRIBUTES_COUNT
private static final long OFFSET_OF_ATTRIBUTES_COUNT- See Also:
-
OFFSET_OF_ATTRIBUTES
private static final long OFFSET_OF_ATTRIBUTES- See Also:
-
OVERRIDE_ANNOTATION
-
length
private final long length -
accessFlags
-
attributes
-
isConstructor
-
descriptorIndex
private final int descriptorIndex -
codeAttribute
-
cp
-
variableNamer
-
methodPrototype
-
classFile
-
comments
-
localClasses
-
isOverride
private boolean isOverride -
thrownTypes
-
-
Constructor Details
-
Method
public Method(ByteData raw, ClassFile classFile, ConstantPool cp, DCCommonState dcCommonState, ClassFileVersion classFileVersion)
-
-
Method Details
-
releaseCode
void releaseCode() -
hasDumpableAttributes
public boolean hasDumpableAttributes() -
collectTypeUsages
- Specified by:
collectTypeUsagesin interfaceTypeUsageCollectable
-
copyLocalClassesFrom
-
getAccessFlags
-
hideSynthetic
public void hideSynthetic() -
hideDead
public void hideDead() -
testAccessFlag
-
getConstructorFlag
-
setConstructorFlag
-
getSignatureAttribute
AttributeSignature getSignatureAttribute() -
getVariableNamer
-
getClassFile
-
getRawByteLength
public long getRawByteLength()- Specified by:
getRawByteLengthin interfaceKnowsRawSize
-
getName
-
generateMethodPrototype
private MethodPrototype generateMethodPrototype(Options options, String initialName, Method.MethodConstructor constructorFlag) -
checkSigProto
private static boolean checkSigProto(MethodPrototype desproto, MethodPrototype sigproto, boolean isEnumConstructor, boolean isInnerConstructor) -
fixupInnerClassSignature
-
getMethodPrototype
-
markOverride
void markOverride() -
markUsedLocalClassType
-
markUsedLocalClassType
-
dumpMethodAnnotations
-
getDeclaredThrownTypes
-
getAttributeDeclaredThrownTypes
-
getThrownTypes
-
dumpSignatureText
-
getAnalysis
-
isConstructor
public boolean isConstructor() -
analyse
void analyse() -
hasCodeAttribute
public boolean hasCodeAttribute() -
getCodeAttribute
-
dumpComments
-
setComments
-
addComment
-
isVisibleTo
-
dump
-
toString
-