Class MethodBody
java.lang.Object
com.strobel.core.Freezable
com.strobel.assembler.metadata.MethodBody
- All Implemented Interfaces:
IFreezable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final Collection<ExceptionHandler> private final InstructionCollectionprivate intprivate intprivate final MethodDefinitionprivate List<StackMapFrame> private ParameterDefinitionprivate final VariableDefinitionCollection -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidfinal intfinal List<ExceptionHandler> final InstructionCollectionfinal intfinal intfinal MethodDefinitionfinal ParameterDefinitiongetParameter(int index) final IMetadataResolverfinal List<StackMapFrame> final ParameterDefinitionfinal booleanhasThis()(package private) final voidsetCodeSize(int codeSize) (package private) final voidsetMaxLocals(int maxLocals) (package private) final voidsetMaxStackSize(int maxStackSize) (package private) final voidsetStackMapFrames(List<StackMapFrame> stackMapFrames) (package private) final voidsetThisParameter(ParameterDefinition thisParameter) Methods inherited from class Freezable
canFreeze, freeze, freezeIfUnfrozen, isFrozen, tryFreeze, verifyFrozen, verifyNotFrozen
-
Field Details
-
_method
-
_instructions
-
_variables
-
_exceptionHandlers
-
_stackMapFrames
-
_thisParameter
-
_maxStackSize
private int _maxStackSize -
_maxLocals
private int _maxLocals -
_codeSize
private int _codeSize
-
-
Constructor Details
-
MethodBody
-
-
Method Details
-
getResolver
-
getInstructions
-
getVariables
-
getExceptionHandlers
-
getStackMapFrames
-
setStackMapFrames
-
getMethod
-
hasThis
public final boolean hasThis() -
getThisParameter
-
getMaxStackSize
public final int getMaxStackSize() -
getCodeSize
public final int getCodeSize() -
getMaxLocals
public final int getMaxLocals() -
setThisParameter
-
setMaxStackSize
final void setMaxStackSize(int maxStackSize) -
setCodeSize
final void setCodeSize(int codeSize) -
setMaxLocals
final void setMaxLocals(int maxLocals) -
freezeCore
protected final void freezeCore()- Overrides:
freezeCorein classFreezable
-
getParameter
-