net.jangaroo.jooc
Class NodeImplBase

java.lang.Object
  extended by net.jangaroo.jooc.NodeImplBase
Direct Known Subclasses:
Annotation, ClassBody, CompilationUnit, EmptyDeclaration, Extends, Ide, IdeDeclaration, ImportDirective, InfixOpExpr, Parameters, Type, TypeRelation, UseNamespaceDirective, VectorLiteral

public abstract class NodeImplBase
extends Object

Author:
Andreas Gawecki

Nested Class Summary
static interface NodeImplBase.Scoped
           
 
Constructor Summary
NodeImplBase()
           
 
Method Summary
 net.jangaroo.jooc.AstNode analyze(net.jangaroo.jooc.AstNode parentNode, AnalyzeContext context)
           
<N extends net.jangaroo.jooc.AstNode>
List<N>
analyze(net.jangaroo.jooc.AstNode parent, List<N> nodes, AnalyzeContext context)
           
protected  void generateAsApiCode(JsWriter out)
          Default implementation generates same code as JS.
 void generateCode(JsWriter out)
           
protected abstract  void generateJsCode(JsWriter out)
           
 JooSymbol getSymbol()
           
<N extends net.jangaroo.jooc.AstNode>
void
scope(List<N> nodes, Scope scope)
           
 void scope(Scope scope)
           
 void withNewDeclarationScope(net.jangaroo.jooc.AstNode definingNode, Scope scope, NodeImplBase.Scoped scoped)
           
 void withNewLabelScope(net.jangaroo.jooc.Statement statement, Scope scope, NodeImplBase.Scoped scoped)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeImplBase

public NodeImplBase()
Method Detail

generateCode

public void generateCode(JsWriter out)
                  throws IOException
Throws:
IOException

generateJsCode

protected abstract void generateJsCode(JsWriter out)
                                throws IOException
Throws:
IOException

generateAsApiCode

protected void generateAsApiCode(JsWriter out)
                          throws IOException
Default implementation generates same code as JS. Overwritten where this must differ.

Throws:
IOException

analyze

public net.jangaroo.jooc.AstNode analyze(net.jangaroo.jooc.AstNode parentNode,
                                         AnalyzeContext context)

scope

public <N extends net.jangaroo.jooc.AstNode> void scope(List<N> nodes,
                                                        Scope scope)

analyze

public <N extends net.jangaroo.jooc.AstNode> List<N> analyze(net.jangaroo.jooc.AstNode parent,
                                                             List<N> nodes,
                                                             AnalyzeContext context)

withNewDeclarationScope

public void withNewDeclarationScope(net.jangaroo.jooc.AstNode definingNode,
                                    Scope scope,
                                    NodeImplBase.Scoped scoped)

withNewLabelScope

public void withNewLabelScope(net.jangaroo.jooc.Statement statement,
                              Scope scope,
                              NodeImplBase.Scoped scoped)

getSymbol

public JooSymbol getSymbol()

scope

public void scope(Scope scope)


Copyright © 2002-2011 CoreMedia AG. All Rights Reserved.