3 مستودعات
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 هي مجموعة أدوات هندسة البايت كود (bytecode) لتحليل وتعديل وإنشاء ملفات فئة Java والبايت كود. تعمل كمكتبة معالجة بايت كود تسمح بتحرير ملفات الفئة إما من خلال الوصول المباشر إلى البايت كود أو بناء جملة الكود المصدري عالي المستوى. يوفر المشروع أدوات متخصصة للإنشاء البرمجي لفئات وواجهات Java جديدة أثناء وقت التشغيل. يتضمن مولد وكيل ديناميكي لاعتراض استدعاءات الأساليب ومعترض محمل فئة يقوم تلقائياً بتعديل تعريفات الفئة أثناء تحميلها في Java Virtual Machine. تغطي القدرات الإضافية تحليل بايت كود Java وإعادة تحميل الكود الساخن لاستبدال تعريفات الفئة في عملية قيد التشغيل. تدعم مجموعة الأدوات أيضاً تعديل ملفات الفئة المجمعة وفحص تعليمات الأساليب لفهم تدفق البرنامج.
Enables the creation of Java classes or interfaces from scratch at runtime, including methods and fields.