Package dev.lukebemish.bytecodebuilder
Class BackendASM.ClassContextASM
java.lang.Object
dev.lukebemish.bytecodebuilder.ClassContext<BackendASM.ClassContextASM,BackendASM.FieldContextASM,BackendASM.MethodContextASM>
dev.lukebemish.bytecodebuilder.BackendASM.ClassContextASM
- Enclosing class:
BackendASM
public static final class BackendASM.ClassContextASM
extends ClassContext<BackendASM.ClassContextASM,BackendASM.FieldContextASM,BackendASM.MethodContextASM>
-
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.objectweb.asm.ClassVisitor classVisitor) byte[]build(int version, int access, ClassDesc name, ClassDesc superName, @Nullable Collection<ClassDesc> interfaces, @Nullable ClassSignature signature) constructor(int access, MethodTypeDesc descriptor, @Nullable Collection<ClassDesc> exceptions, Consumer<? super BackendASM.MethodContextASM> remainder) field(String name, int access, ClassDesc descriptor, @Nullable Signature signature, @Nullable ConstantDesc constant, Consumer<? super BackendASM.FieldContextASM> remainder) method(String name, int access, MethodTypeDesc descriptor, @Nullable MethodSignature signature, @Nullable Collection<ClassDesc> exceptions, Consumer<? super BackendASM.MethodContextASM> remainder) Methods inherited from class dev.lukebemish.bytecodebuilder.ClassContext
create, create, hidden
-
Method Details
-
asm
-
constructor
public BackendASM.ClassContextASM constructor(int access, MethodTypeDesc descriptor, @Nullable Collection<ClassDesc> exceptions, Consumer<? super BackendASM.MethodContextASM> remainder) - Specified by:
constructorin classClassContext<BackendASM.ClassContextASM,BackendASM.FieldContextASM, BackendASM.MethodContextASM>
-
method
public BackendASM.ClassContextASM method(String name, int access, MethodTypeDesc descriptor, @Nullable MethodSignature signature, @Nullable Collection<ClassDesc> exceptions, Consumer<? super BackendASM.MethodContextASM> remainder) - Specified by:
methodin classClassContext<BackendASM.ClassContextASM,BackendASM.FieldContextASM, BackendASM.MethodContextASM>
-
field
public BackendASM.ClassContextASM field(String name, int access, ClassDesc descriptor, @Nullable Signature signature, @Nullable ConstantDesc constant, Consumer<? super BackendASM.FieldContextASM> remainder) - Specified by:
fieldin classClassContext<BackendASM.ClassContextASM,BackendASM.FieldContextASM, BackendASM.MethodContextASM>
-
apply
public void apply(org.objectweb.asm.ClassVisitor classVisitor) -
build
public byte[] build(int version, int access, ClassDesc name, ClassDesc superName, @Nullable Collection<ClassDesc> interfaces, @Nullable ClassSignature signature) - Specified by:
buildin classClassContext<BackendASM.ClassContextASM,BackendASM.FieldContextASM, BackendASM.MethodContextASM>
-