Package org.stjs.generator.writer.templates

Class Summary
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.
GetTemplate<JS> array.
InvokeTemplate<JS> x.
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.
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.
PropertiesTemplate<JS> $properties(obj) -> obj
PutTemplate<JS> array.
SetTemplate<JS> the same as put
TypeOfTemplate<JS> $typeOf(arg) -> (typeof arg)
 



Copyright © 2014. All Rights Reserved.