public class MethodWriter extends ClassNodeTransformer
| Modifier and Type | Field and Description |
|---|---|
int |
access |
java.lang.String[] |
exceptions |
org.objectweb.asm.tree.InsnList |
list |
ObfMapping |
method |
writeFlags| Constructor and Description |
|---|
MethodWriter(int access,
ObfMapping method)
Write a new method with no instructions or exceptions.
|
MethodWriter(int access,
ObfMapping method,
ASMBlock block)
Write a new method with the provided instructions.
|
MethodWriter(int access,
ObfMapping method,
org.objectweb.asm.tree.InsnList list)
Write a new method with the provided instructions.
|
MethodWriter(int access,
ObfMapping method,
java.lang.String[] exceptions)
Write a new method with no instructions and the provided exceptions.
|
MethodWriter(int access,
ObfMapping method,
java.lang.String[] exceptions,
ASMBlock block)
Write a new method with the provided instructions and the provided exceptions.
|
MethodWriter(int access,
ObfMapping method,
java.lang.String[] exceptions,
org.objectweb.asm.tree.InsnList list)
Write a new method with the provided instructions and the provided exceptions.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
className() |
void |
transform(org.objectweb.asm.tree.ClassNode cnode) |
void |
write(org.objectweb.asm.tree.MethodNode mv) |
addMethodsToSortpublic final int access
public final ObfMapping method
public final java.lang.String[] exceptions
public org.objectweb.asm.tree.InsnList list
public MethodWriter(int access,
@Nonnull
ObfMapping method)
access - Access flags.method - The method name and desc.public MethodWriter(int access,
@Nonnull
ObfMapping method,
@Nullable
org.objectweb.asm.tree.InsnList list)
access - Access flags.method - The method name and desc.list - The instructions to use.public MethodWriter(int access,
@Nonnull
ObfMapping method,
@Nonnull
ASMBlock block)
access - Access flags.method - The method name and desc.block - The instructions to use.public MethodWriter(int access,
@Nonnull
ObfMapping method,
@Nullable
java.lang.String[] exceptions)
access - Access flags.method - The method name and desc.exceptions - The exceptions this method can throw.public MethodWriter(int access,
@Nonnull
ObfMapping method,
@Nullable
java.lang.String[] exceptions,
@Nullable
org.objectweb.asm.tree.InsnList list)
access - Access flags.method - The method name and desc.exceptions - The exceptions this method can throw.list - The instructions to use.public MethodWriter(int access,
@Nonnull
ObfMapping method,
@Nullable
java.lang.String[] exceptions,
@Nonnull
ASMBlock block)
access - Access flags.method - The method name and desc.exceptions - The exceptions this method can throw.block - The instructions to use.public java.lang.String className()
className in class ClassNodeTransformerpublic void transform(org.objectweb.asm.tree.ClassNode cnode)
transform in class ClassNodeTransformerpublic void write(org.objectweb.asm.tree.MethodNode mv)