XApi - Code Generator Templates

A simple templating system for java codegen. This library includes an object-oriented, fluent source writing api, for a chained, intuitive codegen api. It also includes a template processor which can take java source files formatted with "magic comments", to allow simple mapping of GeneratorClass#generatorMethod() to inject dynamic source content. //@generateWith(GeneratorClass)// -Sets the current generator. You may use as many as you please //generatorMethod(arbitrary-string-data-you-may-want-to-parse)// -invokes the named method on the current injector, with any text (between brackets) sent as a string This allows you to markup default source with hooks where you may want to inject arbitrary code. It is especially useful for generating super-source in gwt compiles; changes to the default class are propagated to overrides.

License

License

Categories

Categories

Net
GroupId

GroupId

net.wetheinter
ArtifactId

ArtifactId

xapi-template
Last Version

Last Version

0.2
Release Date

Release Date

Type

Type

jar
Description

Description

XApi - Code Generator Templates
A simple templating system for java codegen. This library includes an object-oriented, fluent source writing api, for a chained, intuitive codegen api. It also includes a template processor which can take java source files formatted with "magic comments", to allow simple mapping of GeneratorClass#generatorMethod() to inject dynamic source content. //@generateWith(GeneratorClass)// -Sets the current generator. You may use as many as you please //generatorMethod(arbitrary-string-data-you-may-want-to-parse)// -invokes the named method on the current injector, with any text (between brackets) sent as a string This allows you to markup default source with hooks where you may want to inject arbitrary code. It is especially useful for generating super-source in gwt compiles; changes to the default class are propagated to overrides.
Project URL

Project URL

https://github.com/WeTheInternet/xapi-template
Project Organization

Project Organization

The Internet Party

Download xapi-template

How to add to project

<!-- https://jarcasting.com/artifacts/net.wetheinter/xapi-template/ -->
<dependency>
    <groupId>net.wetheinter</groupId>
    <artifactId>xapi-template</artifactId>
    <version>0.2</version>
</dependency>
// https://jarcasting.com/artifacts/net.wetheinter/xapi-template/
implementation 'net.wetheinter:xapi-template:0.2'
// https://jarcasting.com/artifacts/net.wetheinter/xapi-template/
implementation ("net.wetheinter:xapi-template:0.2")
'net.wetheinter:xapi-template:jar:0.2'
<dependency org="net.wetheinter" name="xapi-template" rev="0.2">
  <artifact name="xapi-template" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.wetheinter', module='xapi-template', version='0.2')
)
libraryDependencies += "net.wetheinter" % "xapi-template" % "0.2"
[net.wetheinter/xapi-template "0.2"]

Dependencies

provided (1)

Group / Artifact Type Version
com.google.gwt : gwt-dev jar 2.5.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.8.1

Project Modules

There are no modules declared in this project.
net.wetheinter

The Internet Party

Versions

Version
0.2