| Modifier and Type | Class and Description |
|---|---|
class |
CompilationUnitWriter<JS> |
| Modifier and Type | Class and Description |
|---|---|
class |
ClassWriter<JS> |
class |
FieldWriter<JS>
This will add the declaration of a field.
|
class |
MethodWriter<JS> |
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayAccessWriter<JS>
array access -> used only in very specific case, otherwise the arrays are forbidden
|
class |
AssignmentWriter<JS> |
class |
BinaryWriter<JS> |
class |
CompoundAssignmentWriter<JS> |
class |
ConditionalWriter<JS>
conditional expr - as in java
|
class |
IdentifierWriter<JS>
this class deal with identifiers likes variable, field references.
|
class |
InstanceofWriter<JS> |
class |
LiteralWriter<JS> |
class |
MemberSelectWriter<JS>
write member select access, for fields, types and methods.
|
class |
MethodInvocationWriter<JS> |
class |
NewArrayWriter<JS>
useless as arrays are supposed to be checked before
|
class |
NewClassWriter<JS> |
class |
ParenthesizedWriter<JS> |
class |
TypeCastWriter<JS> |
class |
UnaryWriter<JS>
Java unary operator
|
| Modifier and Type | Class and Description |
|---|---|
class |
AssertWriter<JS>
asserts - not supported
|
class |
BlockWriter<JS>
regular blocks.
|
class |
BreakWriter<JS> |
class |
CaseWriter<JS> |
class |
CatchWriter<JS> |
class |
ContinueWriter<JS> |
class |
DoWhileLoopWriter<JS> |
class |
EmptyStatementWriter<JS> |
class |
EnhancedForLoopWriter<JS>
generates from
|
class |
ExpressionStatementWriter<JS> |
class |
ForLoopWriter<JS> |
class |
IfWriter<JS> |
class |
LabeledStatementWriter<JS> |
class |
ReturnWriter<JS> |
class |
SwitchWriter<JS>
switch
|
class |
SynchronizedWriter<JS>
Synchronized blocks are not allowed
|
class |
ThrowWriter<JS> |
class |
TryWriter<JS>
Try blocks -> as in java
|
class |
VariableWriter<JS>
variable declaration.
|
class |
WhileLoopWriter<JS>
while loop - as in Java
|
| Modifier and Type | Class and Description |
|---|---|
class |
AdapterTemplate<JS>
method(x, arg1, arg2) -> x.method(arg1, arg2)
|
class |
ArrayTemplate<JS>
$array() -> []
|
class |
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.
|
class |
DefaultTemplate<JS>
this is the standard generation template
|
class |
DeleteTemplate<JS>
map.$delete(key) -> delete map[key]
|
class |
GetTemplate<JS>
array.$get(x) -> array[x], or $get(obj, prop) -> obj[prop]
|
class |
InvokeTemplate<JS>
x.$invoke(a,b) -> x(a,b)
|
class |
JsTemplate<JS>
$js("code") -> code
|
class |
MapTemplate<JS>
$map(n1, v1, n2, v2) -> {n1: v1, n2: v2}
|
class |
MethodToPropertyTemplate<JS>
$method() => $method and
$method(x) => $method = x and $staticMethod(x) => x.$method and $staticMethod(x, y) => x.$method = y |
class |
OrTemplate<JS>
$or(x, y, z) -> (x || y || z)
|
class |
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 |
class |
PropertiesTemplate<JS>
$properties(obj) -> obj
|
class |
PutTemplate<JS>
array.$set(index, value) -> array[index] = value, or $set(obj, prop, value) -> obj[prop]=value
|
class |
SetTemplate<JS>
the same as put
|
class |
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 |
class |
TypeOfTemplate<JS>
$typeOf(arg) -> (typeof arg)
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultAssignmentTemplate<JS> |
class |
DefaultCompoundAssignmentTemplate<JS> |
class |
DefaultIdentifierTemplate<JS>
this class deal with identifiers likes variable, field references.
|
class |
DefaultMemberSelectTemplate<JS>
write member select access, for fields, types and methods.
|
class |
DefaultUnaryTemplate<JS>
Java unary operator
|
class |
GetterIdentifierTemplate<JS> |
class |
GetterMemberSelectTemplate<JS>
write member select access, for fields, types and methods.
|
class |
GlobalGetterIdentifierTemplate<JS> |
class |
GlobalGetterMemberSelectTemplate<JS>
write member select access, for fields, types and methods.
|
class |
GlobalSetterAssignmentTemplate<JS> |
class |
GlobalSetterCompoundAssignmentTemplate<JS>
Java unary operator
|
class |
GlobalSetterUnaryTemplate<JS>
Java unary operator
|
class |
SetterAssignmentTemplate<JS> |
class |
SetterCompoundAssignmentTemplate<JS> |
class |
SetterUnaryTemplate<JS>
Java unary operator
|
Copyright © 2015. All Rights Reserved.