awesome-repositories.com
المدونة
MCP
awesome-repositories.com

اكتشف أفضل مستودعات المصادر المفتوحة باستخدام بحث مدعوم بالذكاء الاصطناعي.

استكشفعمليات بحث منسقةبدائل مفتوحة المصدربرمجيات ذاتية الاستضافةالمدونةخريطة الموقع
المشروعحولكيفية ترتيب النتائجالصحافةخادم MCP
قانونيالخصوصيةالشروط
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
square avatar

square/kotlinpoet

0
View on GitHub↗
4,141 نجوم·311 تفرعات·Kotlin·Apache-2.0·5 مشاهداتsquare.github.io/kotlinpoet↗

Kotlinpoet

KotlinPoet هي واجهة برمجة تطبيقات (API) مبنية على Java لإنشاء وتنسيق ملفات مصدر Kotlin برمجياً. تعمل كأداة لتوليد الكود المصدري ورسم خرائط لنظام الأنواع، وتوفر إطار عمل لبناء هياكل كود Kotlin من خلال نموذج آمن للأنواع (type-safe) لعناصر اللغة، مما يساعد في أتمتة كتابة الكود المتكرر (boilerplate).

يستخدم المشروع نمط الباني الانسيابي (fluent-builder) لبناء عناصر اللغة تدريجياً، ويحتفظ بنموذج كائنات داخلي يفصل بين الهيكل المنطقي وتنسيق النص النهائي. كما يتعامل مع تعقيدات إصدار الكود المصدري من خلال التنسيق القائم على المسافات البادئة (indentation) والهروب من الكلمات المحجوزة لضمان الحصول على مخرجات صالحة.

تغطي المكتبة توليد مجموعة واسعة من التصريحات، بما في ذلك الفئات (classes)، والواجهات (interfaces)، والدوال (functions)، والخصائص (properties)، والكائنات المرافقة (companion objects). كما تتضمن أدوات لإدارة الأنواع المعقدة ذات المعاملات، وفئات التعداد (enum)، والأسماء المستعارة للأنواع (type aliases)، بالإضافة إلى أدوات لتضمين القيم الحرفية وبناء كتل التحكم في التدفق. تم دمج إدارة الاستيراد التلقائي والإشارة إلى التصريحات لحل الأعضاء عبر الأسماء المؤهلة.

توفر KotlinPoet إمكانيات لتحويل بيانات الانعكاس (reflection) والرموز إلى تمثيلات مصدرية، وتدعم تصدير مواصفات الملفات لاستخدامها في أدوات معالجة التعليقات التوضيحية (annotation processing).

Features

  • Source Code Generators - Provides a comprehensive API for programmatically generating valid Kotlin source code files from structured models.
  • Automatic Import Management - Generates required import statements automatically based on the types referenced within the source code.
  • Source Function Generation - Provides comprehensive utilities for defining and generating Kotlin functions with configurable bodies and signatures.
  • Metadata to Source Transformation - Converts reflection and symbol metadata into concrete source representations via a mapping layer.
  • Source Code Abstract Syntax Trees - Implements a type-safe object model of Kotlin language elements to represent source code as a tree.
  • Source Code Formatting - Manages nested code blocks by tracking depth and applying consistent whitespace during the serialization process.
  • Symbol to Source Mapping - Converts language symbols and visibility markers into compatible types to create new source files programmatically.
  • Type Metadata Transformations - Transforms reflection-based type metadata into concrete source representations like signatures and enclosed elements.
  • Type System Mappers - Transforms reflection data and symbols into valid Kotlin type declarations and signatures.
  • Internal Tree Representations - Maintains an internal tree of language constructs that separates logical structure from final text formatting.
  • Recursive Type Resolution - Maps type parameters across multiple levels of nesting to ensure correct type resolution in generated code.
  • Reflection-Based Type Mapping - Extracts detailed metadata from reflection types to transform them into source code declarations.
  • Parameterized Type Synthesis - Constructs parameterized, wildcard, and nullable types to ensure type safety in generated Kotlin code.
  • Type-Safe Synthesis - Creating complex Kotlin types and function signatures programmatically while ensuring correct type resolution and import management.
  • Fluent Builder APIs - Uses a chainable API to incrementally construct complex language elements like classes and functions.
  • Type Alias Synthesis - Creates type alias declarations for simple classes, parameterized types, or lambdas.
  • Interface Definition Code Generation - Supports the programmatic creation of interface declarations to define common APIs.
  • Language Boilerplate Automators - Automates the generation of repetitive Kotlin classes, functions, and properties using metadata-driven templates.
  • Primitive Literal Embedding - Allows embedding raw strings and primitives directly into generated source code without manual quoting.
  • Interpolated Code Templates - Creates string literals with interpolation expressions to produce dynamic templates in generated source.
  • Metadata Extraction - Extracts language semantics and runtime information from metadata annotations attached to classes or type elements.
  • Class Definitions with Constructors - Generates primary or secondary constructors for a class and maps parameters to class properties.
  • Class Property Declarations - Creates property declarations with configurable visibility, mutability, initializers, and inline accessors.
  • Code Generator Exporters - Exports generated file specifications to code generators while managing aggregation status and file dependencies.
  • Companion Object Generation - Creates companion objects associated with classes to define static-like members and properties.
  • Annotation Processing Tooling - Provides the infrastructure for building custom annotation processors that generate supporting classes and interfaces.
  • Source Control Flow Construction - Manages indentation and braces for generated loops and conditional blocks.
  • Declaration Referencing - Inserts the name of another generated declaration and automatically escapes names that conflict with language keywords.
  • Default Arguments - Provides the ability to assign default values to function parameters in generated Kotlin code.
  • Function Parameter Definitions - Allows the detailed definition of input parameters for generated methods and constructors.
  • Generated Source Tracking - Associates generated code with original source files to enable incremental processing and faster rebuilds.
  • Identifier Escaping - Detects identifiers that conflict with language keywords and automatically wraps them in backticks.
  • Kotlin Extension Functions - Enables the generation of extension functions to add functionality to existing classes without inheritance.
  • String Literal Formatting - Automatically formats text as string literals by handling quotation marks and escaping special characters.
  • Type Annotations - Provides capabilities to attach metadata annotations to generated type declarations.
  • API Design Automations - Provides utilities to automate the generation of consistent, type-safe interfaces and extension functions for library APIs.
  • Code Block Value Injection - Interpolates values into code blocks using placeholders to generate dynamic logic fragments.
  • Code Annotations - Attaches simple or complex metadata to declarations and types including member properties and use-site targets.
  • Enum Class Generation - Creates enum classes with constants, primary constructors, and properties.
  • Singleton Object Declarations - Enables the generation of Kotlin singleton objects containing properties and functions.
  • Kotlin Libraries - A Kotlin API for generating .kt source files
  • Language & Core Libraries - A Kotlin API for generating .kt source files.

سجل النجوم

مخطط تاريخ النجوم لـ square/kotlinpoetمخطط تاريخ النجوم لـ square/kotlinpoet

بحث بالذكاء الاصطناعي

استكشف المزيد من المستودعات الرائعة

صف ما تحتاجه بلغة بسيطة — وسيقوم الذكاء الاصطناعي بترتيب آلاف المشاريع مفتوحة المصدر المنسقة حسب الصلة.

Start searching with AI

الأسئلة الشائعة

ما هي وظيفة square/kotlinpoet؟

KotlinPoet هي واجهة برمجة تطبيقات (API) مبنية على Java لإنشاء وتنسيق ملفات مصدر Kotlin برمجياً. تعمل كأداة لتوليد الكود المصدري ورسم خرائط لنظام الأنواع، وتوفر إطار عمل لبناء هياكل كود Kotlin من خلال نموذج آمن للأنواع (type-safe) لعناصر اللغة، مما يساعد في أتمتة كتابة الكود المتكرر (boilerplate).

ما هي الميزات الرئيسية لـ square/kotlinpoet؟

الميزات الرئيسية لـ square/kotlinpoet هي: Source Code Generators, Automatic Import Management, Source Function Generation, Metadata to Source Transformation, Source Code Abstract Syntax Trees, Source Code Formatting, Symbol to Source Mapping, Type Metadata Transformations.

ما هي البدائل مفتوحة المصدر لـ square/kotlinpoet؟

تشمل البدائل مفتوحة المصدر لـ square/kotlinpoet: square/javapoet — JavaPoet is a source code generator and metaprogramming utility for the Java language. It functions as an abstract… apple/swift-syntax — swift-syntax is a library for parsing, manipulating, and generating Swift source code. It provides a source-accurate… projectlombok/lombok — Lombok is a Java annotation processor and boilerplate reduction library designed to automatically generate repetitive… c3lang/c3c — c3c is the compiler for the C3 programming language, transforming source code into executable binaries, static… openrewrite/rewrite — OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic… carp-lang/carp — Carp is a statically typed Lisp compiler that compiles Lisp-like syntax directly to C source code, enabling seamless…

بدائل مفتوحة المصدر لـ Kotlinpoet

مشاريع مفتوحة المصدر مشابهة، مرتبة حسب عدد الميزات المشتركة مع Kotlinpoet.
  • square/javapoetالصورة الرمزية لـ square

    square/javapoet

    10,850عرض على GitHub↗

    JavaPoet is a source code generator and metaprogramming utility for the Java language. It functions as an abstract syntax tree construction library that allows developers to model classes, methods, and fields as objects before emitting them as source code. The library distinguishes itself through automatic import management and code formatting. It tracks referenced types to generate required import statements and handles line wrapping, semicolon placement, and indentation to ensure generated files remain readable. The tool covers a broad range of generation capabilities, including the defini

    Java
    عرض على GitHub↗10,850
  • apple/swift-syntaxالصورة الرمزية لـ apple

    apple/swift-syntax

    3,671عرض على GitHub↗

    swift-syntax is a library for parsing, manipulating, and generating Swift source code. It provides a source-accurate abstract syntax tree representation of Swift code, acting as a parser, transformer, and code generator. The project serves as the infrastructure for Swift macro development, enabling the expansion and transformation of source code during compilation. It is used to build compiler tooling for static analysis, formatting, and automated refactoring. The system covers a broad range of source analysis capabilities, including the ability to convert source code into structured trees f

    Swift
    عرض على GitHub↗3,671
  • projectlombok/lombokالصورة الرمزية لـ projectlombok

    projectlombok/lombok

    13,458عرض على GitHub↗

    Lombok is a Java annotation processor and boilerplate reduction library designed to automatically generate repetitive source code. It intercepts the compilation process to inject methods and fields directly into Java classes, acting as a source code generator that eliminates the need to manually write common class patterns. The project distinguishes itself through deep integration with the Java compiler and various integrated development environments. It provides IDE plugins that allow editors to recognize and navigate generated methods, preventing false compilation errors and maintaining syn

    Java
    عرض على GitHub↗13,458
  • c3lang/c3cالصورة الرمزية لـ c3lang

    c3lang/c3c

    5,147عرض على GitHub↗

    c3c is the compiler for the C3 programming language, transforming source code into executable binaries, static libraries, or dynamic libraries using an LLVM backend. It implements a system based on result-based error handling, scoped memory pooling, and a semantic macro system. The compiler provides first-class support for hardware-backed SIMD vectors that map directly to processor instructions and enables runtime polymorphism through interface-based dynamic dispatch. The project covers a broad set of low-level capabilities, including manual and pooled memory management, inline assembly inte

    C3c3compilerlanguage
    عرض على GitHub↗5,147
  • عرض جميع البدائل الـ 30 لـ Kotlinpoet→