Uses of Interface
org.stjs.generator.writer.WriterContributor

Packages that use WriterContributor
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 WriterContributor in org.stjs.generator.writer
 

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

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

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

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

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

Classes in org.stjs.generator.writer.statement that implement WriterContributor
 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 WriterContributor in org.stjs.generator.writer.templates
 

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