public class Codifier
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Codifier |
access(int access)
Set the access modifier of the method.
|
Codifier |
body(java.lang.String body)
Set the body of the method.
|
java.lang.String |
build() |
Codifier |
exception(org.objectweb.asm.Type exception)
Add an exception to the method.
|
Codifier |
exceptions(org.objectweb.asm.Type... exceptions)
Add multiple exceptions to the method.
|
static Codifier |
get() |
Codifier |
name(java.lang.String name)
Set the name of the method.
|
static Codifier |
of(org.objectweb.asm.tree.MethodNode method)
Create a codifier of the given method node.
|
Codifier |
param(org.objectweb.asm.Type parameter)
Add a parameter to the method.
|
Codifier |
params(org.objectweb.asm.Type... parameters)
Add multiple parameters to the method.
|
Codifier |
returnType(org.objectweb.asm.Type returnType)
Set the return type of the method.
|
public static Codifier get()
public static Codifier of(org.objectweb.asm.tree.MethodNode method)
method - The method nodepublic Codifier access(int access)
access - The access modifierpublic Codifier returnType(org.objectweb.asm.Type returnType)
returnType - The return typepublic Codifier name(java.lang.String name)
name - The namepublic Codifier param(org.objectweb.asm.Type parameter)
null is passed as the parameter the current parameter list will be cleared.parameter - The parameterpublic Codifier params(org.objectweb.asm.Type... parameters)
parameters - The parameterspublic Codifier exception(org.objectweb.asm.Type exception)
null is passed as the exception the current exception list will be cleared.exception - The exceptionpublic Codifier exceptions(org.objectweb.asm.Type... exceptions)
exceptions - The exceptionspublic Codifier body(java.lang.String body)
body - The bodypublic java.lang.String build()