Code Monkey home page Code Monkey logo

parcelablecodegenerator's Introduction

ParcelableCodeGenerator

This project is a code generator written in Java used to generate Android code. Given a JSON definition file, it will generate the corresponding Parcelable class.

Architecture of the project

The java project contains the following folders :

  • src : The code used to generate your Parcelable classes. Normally you shouldn't have to modify it.
  • res : This folder contains snippets of code used by the generator.
  • input : This folder contains your JSON definition files. You can have multiple JSON files next to each other as well as in subfolders. An example and the JSON format are available in the "example" folder.
  • output : This is where the generated code will be written. Each generate code will be stored in a input subfolder .

How to use ParcelableCodeGenerator

In order to use it, here are the steps to follow :

  1. Download the current version of the project on your computer using git (git clone [email protected]:foxykeep/ParcelableCodeGenerator.git).
  2. Import the project in your IDE.
  3. Write your JSON definition file. You can use the format file and the example file given in the folder "example" to help you.
  4. Run the project as a Java application.
  5. Your classes are available in the output folder

Building/Running from the CLI

    mkdir -p bin/input
    cd bin
    ln -s ../res .
    javac $(find ../src -name *.java) -d .
    cp ../example/testInput/fullgen.json ./input
    java com/foxykeep/parcelablecodegenerator/Main

Credits and License

Foxykeep (http://www.foxykeep.com)

Licensed under the Beerware License :

You can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.

parcelablecodegenerator's People

Contributors

foxykeep avatar writtmeyer avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.