public class MethodParameters extends Object
| Constructor and Description |
|---|
MethodParameters(String desc)
Create an instance
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLoadInstruction(int parameterIndex) |
int |
getLocalVar(int parameterIndex) |
com.insidious.common.weaver.Descriptor |
getRecordDesc(int parameterIndex) |
int |
getRecordWords(int parameterIndex) |
int |
getStoreInstruction(int parameterIndex) |
org.objectweb.asm.Type |
getType(int parameterIndex) |
int |
getTypeId(int parameterIndex) |
int |
getWords(int parameterIndex) |
void |
setLocalVar(int parameterIndex,
int variableIndex)
Record a local variable index for saving a parameter.
|
int |
size() |
public MethodParameters(String desc)
desc - specifies a method descriptor, e.g. "(I)V".public void setLocalVar(int parameterIndex,
int variableIndex)
parameterIndex - index of the parameter in the local variable instructionvariableIndex - index of the variable used in the instructionpublic int getLocalVar(int parameterIndex)
parameterIndex - index of the parameter for which the associated variable index is look uponpublic int getWords(int parameterIndex)
parameterIndex - index of the parameterpublic int getRecordWords(int parameterIndex)
parameterIndex - index of the parameterpublic int getLoadInstruction(int parameterIndex)
parameterIndex - index of the parameterpublic int getStoreInstruction(int parameterIndex)
parameterIndex - index of the parameterpublic org.objectweb.asm.Type getType(int parameterIndex)
parameterIndex - index of the parameterpublic int getTypeId(int parameterIndex)
parameterIndex - index of the parameterpublic com.insidious.common.weaver.Descriptor getRecordDesc(int parameterIndex)
parameterIndex - index of the parameterpublic int size()
Copyright © 2023. All rights reserved.