All Projects → erdemtopak → simple-annotation-processor

erdemtopak / simple-annotation-processor

Licence: other
Simple annotation processor example. Inspired by the idea of "How ButterKnife works?"

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to simple-annotation-processor

Kotlin-Annotation-Processor
Annotation Processor Sample in Kotlin
Stars: ✭ 19 (-64.81%)
Mutual labels:  annotation-processor, annotation-processing, javapoet
aptk
A toolkit project to enable you to build annotation processors more easily
Stars: ✭ 28 (-48.15%)
Mutual labels:  annotation, annotation-processor, code-generation
AnnotationProcessorStarter
Project to set up basics of a Java annotation processor
Stars: ✭ 19 (-64.81%)
Mutual labels:  annotation, annotation-processor, annotation-processing
RapidORM
Quick solutions for Android ORM
Stars: ✭ 24 (-55.56%)
Mutual labels:  annotation-processor, annotation-processing, javapoet
AnnotationProcessing
✔️ㅤ[ARTICLE] Writing your own Annotation Processors in Android
Stars: ✭ 47 (-12.96%)
Mutual labels:  annotation, annotation-processor, annotation-processing
MethodScope
Reduce repetitive inheritance works in OOP world using @MethodScope.
Stars: ✭ 33 (-38.89%)
Mutual labels:  annotation, annotation-processor, annotation-processing
annotation-processor-sample
An annotation processor which implements "Builder pattern" for your java classes.
Stars: ✭ 22 (-59.26%)
Mutual labels:  annotation, annotation-processor
Shortbread
Android library that creates app shortcuts from annotations
Stars: ✭ 1,803 (+3238.89%)
Mutual labels:  annotation-processor, code-generation
copydynamic
Prototype of generating `copyDynamic` extension functions for kotlin data classes
Stars: ✭ 57 (+5.56%)
Mutual labels:  code-generation, annotation-processing
Annotation Processing Example
It is the example project for the annotation processing tutorial.
Stars: ✭ 116 (+114.81%)
Mutual labels:  annotation-processor, butterknife
fit
easy storage Object on SharedPreferences
Stars: ✭ 53 (-1.85%)
Mutual labels:  annotation, javapoet
Sweet.apex
Next Generation of Apex Development
Stars: ✭ 43 (-20.37%)
Mutual labels:  annotation, code-generation
Moshix
Moshi Extensions
Stars: ✭ 243 (+350%)
Mutual labels:  annotation-processor, code-generation
Placeholderview
This library provides advance views for lists and stacks. Some of the views are build on top of RecyclerView and others are written in their own. Annotations are compiled by annotation processor to generate bind classes. DOCS -->
Stars: ✭ 2,104 (+3796.3%)
Mutual labels:  annotation-processor, annotation-processing
piri
Piri is a lightweight annotation processing library that generates static factory methods for your Activities and Fragments.
Stars: ✭ 53 (-1.85%)
Mutual labels:  annotation-processor, annotation-processing
generate-kotlin-multiple-rounds
Android sample project demonstrating how to generate Kotlin code through annotation processing, and then feeding it into a second round of annotation processing.
Stars: ✭ 25 (-53.7%)
Mutual labels:  annotation-processor, annotation-processing
Kotlinpoet
A Kotlin API for generating .kt source files.
Stars: ✭ 3,004 (+5462.96%)
Mutual labels:  code-generation, javapoet
shade
Automatic code generation for the SharedPreferences operation.
Stars: ✭ 26 (-51.85%)
Mutual labels:  annotation, annotation-processing
jeta
brooth.github.io/jeta
Stars: ✭ 21 (-61.11%)
Mutual labels:  code-generation, annotation-processing
dagger2-ktx
Kotlin extension bridge library for Dagger2 (proof-of-concept)
Stars: ✭ 41 (-24.07%)
Mutual labels:  annotation-processor, annotation-processing

Simple Annotation Processor

A simple annotation processor example, inspired by the idea of "How ButterKnife works?"

In this sample project there are two self-explaining annotations : @RandomInt and @RandomString

They will be used as markers to generate random integers and strings for annotated fields on compile time.

Simple usage of them:

public class TestActivity extends AppCompatActivity {
    
    @RandomInt
    String randomInteger;
    
    @RandomInt(minValue = 1, maxValue = 100)
    int randomIntegerBetween1and100;
    
    @RandomString
    String randomString;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Randomizer.bind(this);
        //... application code
    }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].