3 Repos
Creates new Java classes from scratch during execution, defining superclass, methods, and behavior.
Distinct from Dynamic Class Creation: Distinct from Dynamic Class Creation: focuses on full class construction with custom bytecode, not simple object creation.
Explore 3 awesome GitHub repositories matching programming languages & runtimes · Runtime Class Constructors. Refine with filters or upvote what's useful.
Byte Buddy is a runtime code generation and bytecode manipulation library for Java. It provides a fluent API for creating and modifying Java classes during execution, enabling developers to define class structures, methods, and fields programmatically without requiring a compiler or direct bytecode assembly. The library supports agent-based class transformation, allowing loaded classes to be modified during JVM startup or runtime through a Java agent that intercepts class loading. It offers bytecode-level method interception for fine-grained control over method behavior, annotation-based code
Creates new Java classes from scratch during execution without needing a compiler.
attrs is a Python library that automatically generates initialization, representation, equality, hashing, and ordering methods from declarative class attribute definitions. At its core, it provides a class decorator metaprogramming framework that intercepts class creation to rewrite the class body, producing dunder methods without manual boilerplate. The library includes a comprehensive attribute validation toolkit with built-in validators for type checks, range constraints, regex matching, length limits, and logical composition of validation rules. The library distinguishes itself through it
Creates classes dynamically at runtime by specifying attribute names and types with optional base classes.
Javassist is a bytecode engineering toolkit for analyzing, modifying, and generating Java bytecode and class files. It functions as a bytecode manipulation library that allows for the editing of class files through either direct bytecode access or high-level source code syntax. The project provides specialized tools for the programmatic creation of new Java classes and interfaces during runtime. It includes a dynamic proxy generator for intercepting method calls and a class loader interceptor that automatically modifies class definitions as they are loaded into the Java Virtual Machine. Addi
Enables the creation of Java classes or interfaces from scratch at runtime, including methods and fields.