| Package | Description |
|---|---|
| org.stjs.generator.check.declaration | |
| org.stjs.generator.check.expression | |
| org.stjs.generator.check.statement |
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayTypeForbiddenCheck
this class checks that you don't use java arrays in the code (the only exception is the main method - but maybe this
only should also be forbidden).
|
class |
ClassDuplicateMemberNameCheck
checks the a field name or method exists only once in the class and its hierchy
|
class |
ClassEnumWithoutMembersCheck
this class checks that no member is added to an enum declaration (other than of course the enum constants)
|
class |
ClassForbidExtendsSyntheticTypeCheck
this checks that a class or interface does not try to extend or implement a
SyntheticType as the code for this class does not exist in reality, so the
calls to any method of such a type may end up in a runtime error. |
class |
ClassGlobalForbidInnerCheck
as for @GlobalScope - forbid inner types of global classes - they make no sense
|
class |
ClassGlobalInstanceMembersCheck
as for @GlobalScope - global classes, there is not class declaration, the members are attached directly to the
JavaScript global object (i.e.
|
class |
ClassImplementJavascriptFunctionCheck
check that a class does not implement a @JavaScript annotated interface as this is reserved to build inline
functions.
|
class |
ClassNamespaceCheck
this check makes sure the names used to define a namespace are JavaScript correctly defined variables, as they will
be used as such
|
class |
FieldInitializerCheck |
class |
MethodDeclarationTemplateCheck
this class verifies that you use @Template only inside a bridge
|
class |
MethodOverloadCheck
this check verifies that only one method (or constructor) with a given name has actually a body, all the other should be marked as native (or
|
class |
MethodSynchronizedCheck
this class checks that you don't have synchornized methods, as this feature is not supported in JavaScript
|
class |
MethodVarArgParamCheck |
class |
MethodWrongNameCheck |
| Modifier and Type | Class and Description |
|---|---|
class |
IdentifierAccessOuterScopeCheck |
class |
IdentifierAccessServerSideCheck |
class |
IdentifierGlobalScopeNameClashCheck
this class checks that you don't use in the same method variables or parameters with the same name as a global scoped
field.
|
class |
MemberSelectGlobalScopeNameClashCheck |
class |
MemberSelectOuterScopeCheck
this check that you don't try to access the outer this using Type.this.
|
class |
MemberSelectServerSideCheck |
class |
MethodInvocationMapConstructorCheck
this class checks that you use only literals for a map key: i.e.
|
class |
MethodInvocationOuterScopeCheck
this check verifies that you don't call a method from the outer type as in javaScript this scope is not accessible.
|
class |
MethodInvocationServerSideCheck
this check verifies that you don't call a method from the outer type as in javaScript this scope is not accessible.
|
class |
MethodInvocationSuperSynthCheck
this check verifies that you don't call a method from the super type if that is a synthetic type, as the actual
definition of this type does not exist.
|
class |
NewArrayForbiddenCheck
this checks that no java array is used.
|
class |
NewClassInlineFunctionCheck |
class |
NewClassObjectInitCheck
this class checks that only field assignment are present in the initialization like this:
new Type(){{x = 1; y = 2; }}; |
| Modifier and Type | Class and Description |
|---|---|
class |
AssertCheck
Java asserts don't have an equivalent - at language level in JavaScript
|
class |
BlockInstanceCheck
this class checks that you cannot have instance initializer blocks (other than the one for special double brace
construction) as you can have only a constructor in a JavaScript class-like construction.
|
class |
SynchronizedCheck
ths synchronized blocks are illegal, as there is no threading model in JavaScript
|
class |
VariableFinalInLoopCheck
This check class verifies that all final variables are declared at the method level, as the block scope does not
exists in JavaScript.
|
class |
VariableWrongNameCheck
check that no JavaScript keyword (that is not a Java keyword) is used as a variable name
|
Copyright © 2015. All Rights Reserved.