Package org.benf.cfr.reader.entities
Class Method
java.lang.Object
org.benf.cfr.reader.entities.Method
- All Implemented Interfaces:
KnowsRawSize
,TypeUsageCollectable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EnumSet<AccessFlagMethod>
private final AttributeMap
private final ClassFile
private final AttributeCode
private DecompilerComments
private final ConstantPool
private final int
private Method.Visibility
private Method.MethodConstructor
private boolean
private final long
private final Map<JavaRefTypeInstance,
String> private final MethodPrototype
private static final long
private static final long
private static final long
private static final long
private static final long
private static final AnnotationTableEntry
private Set<JavaTypeInstance>
private final VariableNamer
-
Constructor Summary
ConstructorsConstructorDescriptionMethod
(ByteData raw, ClassFile classFile, ConstantPool cp, DCCommonState dcCommonState, ClassFileVersion classFileVersion) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addComment
(DecompilerComment comment) (package private) void
analyse()
private static boolean
checkSigProto
(MethodPrototype desproto, MethodPrototype sigproto, boolean isEnumConstructor, boolean isInnerConstructor) void
collectTypeUsages
(TypeUsageCollector collector) boolean
copyLocalClassesFrom
(Method other) void
private void
private void
dumpMethodAnnotations
(Dumper d, List<AnnotationTableEntry> nullableDeclAnnotations) private void
dumpSignatureText
(boolean asClass, Dumper d) private static void
fixupInnerClassSignature
(MethodPrototype descriptor, MethodPrototype signature) private MethodPrototype
generateMethodPrototype
(Options options, String initialName, Method.MethodConstructor constructorFlag) private List<JavaTypeInstance>
private List<JavaTypeInstance>
getName()
long
(package private) AttributeSignature
boolean
boolean
void
hideDead()
void
boolean
boolean
isVisibleTo
(JavaRefTypeInstance maybeCaller) (package private) void
void
markUsedLocalClassType
(JavaTypeInstance javaTypeInstance) void
markUsedLocalClassType
(JavaTypeInstance javaTypeInstance, String suggestedName) (package private) void
void
setComments
(DecompilerComments comments) void
boolean
toString()
-
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:
collectTypeUsages
in 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:
getRawByteLength
in 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
-