Uses of Interface
org.stjs.generator.visitor.VisitorContributor

Packages that use VisitorContributor
org.stjs.generator.check   
org.stjs.generator.check.declaration   
org.stjs.generator.check.expression   
org.stjs.generator.check.statement   
org.stjs.generator.visitor   
org.stjs.generator.writer   
org.stjs.generator.writer.declaration   
org.stjs.generator.writer.expression   
org.stjs.generator.writer.statement   
org.stjs.generator.writer.templates   
 

Uses of VisitorContributor in org.stjs.generator.check
 

Subinterfaces of VisitorContributor in org.stjs.generator.check
 interface CheckContributor<T extends Tree>
          this interface is to be implemented by all the check contributors
 

Uses of VisitorContributor in org.stjs.generator.check.declaration
 

Classes in org.stjs.generator.check.declaration that implement VisitorContributor
 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. the window when running in the browser), the instance members have no meaning, so forbid them.
 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 @Native).
 class MethodSynchronizedCheck
          this class checks that you don't have synchornized methods, as this feature is not supported in JavaScript
 class MethodVarArgParamCheck
           
 

Uses of VisitorContributor in org.stjs.generator.check.expression
 

Classes in org.stjs.generator.check.expression that implement VisitorContributor
 class IdentifierAccessOuterScopeCheck
           
 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 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 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; }};
 

Uses of VisitorContributor in org.stjs.generator.check.statement
 

Classes in org.stjs.generator.check.statement that implement VisitorContributor
 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
 

Uses of VisitorContributor in org.stjs.generator.visitor
 

Methods in org.stjs.generator.visitor with type parameters of type VisitorContributor
<T extends com.sun.source.tree.Tree,C extends VisitorContributor<T,R,P,V>,N>
void
TreePathScannerContributors.contribute(C contributor)
           
<T extends com.sun.source.tree.Tree,C extends VisitorContributor<T,R,P,V>,N>
void
TreePathScannerContributors.contribute(C contributor, Class<T> nodeClass)
           
<T extends com.sun.source.tree.Tree,C extends VisitorContributor<T,R,P,V>>
void
TreePathScannerContributors.contribute(DiscriminatorKey discriminatorKey, C contributor)
           
 

Methods in org.stjs.generator.visitor with parameters of type VisitorContributor
 R VisitorFilterContributor.visit(V visitor, T tree, P p, VisitorContributor<T,R,P,V> chain)
           
 

Uses of VisitorContributor in org.stjs.generator.writer
 

Subinterfaces of VisitorContributor in org.stjs.generator.writer
 interface WriterContributor<T extends Tree,R>
           
 

Classes in org.stjs.generator.writer that implement VisitorContributor
 class CompilationUnitWriter<JS>
           
 

Methods in org.stjs.generator.writer with parameters of type VisitorContributor
 JS CommentWriter.visit(WriterVisitor<JS> visitor, com.sun.source.tree.Tree tree, GenerationContext<JS> context, VisitorContributor<com.sun.source.tree.Tree,JS,GenerationContext<JS>,WriterVisitor<JS>> chain)
           
 

Uses of VisitorContributor in org.stjs.generator.writer.declaration
 

Classes in org.stjs.generator.writer.declaration that implement VisitorContributor
 class ClassWriter<JS>
           
 class FieldWriter<JS>
          This will add the declaration of a field.
 class MethodWriter<JS>
           
 

Uses of VisitorContributor in org.stjs.generator.writer.expression
 

Classes in org.stjs.generator.writer.expression that implement VisitorContributor
 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
 

Uses of VisitorContributor in org.stjs.generator.writer.statement
 

Classes in org.stjs.generator.writer.statement that implement VisitorContributor
 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 for (String x : list) { } for(var x in list) { } Warning: the iteration is on indexes as in JavaScript, not on values as in Java!
 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
 

Uses of VisitorContributor in org.stjs.generator.writer.templates
 

Classes in org.stjs.generator.writer.templates that implement VisitorContributor
 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.
 class GetTemplate<JS>
          array.
 class InvokeTemplate<JS>
          x.
 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.
 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.
 class PropertiesTemplate<JS>
          $properties(obj) -> obj
 class PutTemplate<JS>
          array.
 class SetTemplate<JS>
          the same as put
 class TypeOfTemplate<JS>
          $typeOf(arg) -> (typeof arg)
 



Copyright © 2014. All Rights Reserved.