| Class | Description |
|---|---|
| AdapterTemplate<JS> |
method(x, arg1, arg2) -> x.method(arg1, arg2)
|
| ArrayTemplate<JS> |
$array() -> []
|
| AssertTemplate<JS> |
This template generate a code that allows you to add into the javascript file the original java code and its position
in the source file.
|
| DefaultTemplate<JS> |
this is the standard generation template
|
| DeleteTemplate<JS> |
map.$delete(key) -> delete map[key]
|
| GetTemplate<JS> |
array.$get(x) -> array[x], or $get(obj, prop) -> obj[prop]
|
| InvokeTemplate<JS> |
x.$invoke(a,b) -> x(a,b)
|
| JsTemplate<JS> |
$js("code") -> code
|
| MapTemplate<JS> |
$map(n1, v1, n2, v2) -> {n1: v1, n2: v2}
|
| MethodToPropertyTemplate<JS> |
$method() => $method and
$method(x) => $method = x and $staticMethod(x) => x.$method and $staticMethod(x, y) => x.$method = y |
| OrTemplate<JS> |
$or(x, y, z) -> (x || y || z)
|
| PrefixTemplate<JS> |
This template can be used to prefix the name of a method that can be Java keyword.
When used without parameters as @Template("prefix"), this template simply strips the leading character of the Java method name $method() => method() or _method() => method() When used with a single parameters, this template removes the first param.length characters from the java method name and makes the first letter of the resulting identifier lowercase |
| PropertiesTemplate<JS> |
$properties(obj) -> obj
|
| PutTemplate<JS> |
array.$set(index, value) -> array[index] = value, or $set(obj, prop, value) -> obj[prop]=value
|
| SetTemplate<JS> |
the same as put
|
| SuffixTemplate<JS> |
This template can be used to suffix the name of a method that can be Java keyword.
When used without parameters as @Template("suffix"), this template simply strips the trailing character of the Java method name method_() => method() or method$() => method() When used with a single parameters, this template removes the last param.length characters |
| TypeOfTemplate<JS> |
$typeOf(arg) -> (typeof arg)
|
Copyright © 2015. All Rights Reserved.