net.jangaroo.jooc.ast
Class NodeImplBase

java.lang.Object
  extended by net.jangaroo.jooc.ast.NodeImplBase
All Implemented Interfaces:
AstNode, CodeGenerator
Direct Known Subclasses:
AnnotationParameter, CompilationUnit, Directive, Expr, Extends, ForInitializer, Ide, Implements, Initializer, ObjectField, Type, TypeRelation

public abstract class NodeImplBase
extends Object
implements AstNode

Author:
Andreas Gawecki

Nested Class Summary
static interface NodeImplBase.Scoped
           
 
Constructor Summary
NodeImplBase()
           
 
Method Summary
 void analyze(AstNode parentNode)
           
<N extends AstNode>
void
analyze(AstNode parent, List<N> nodes)
           
 void generate(JsWriter out)
           
<N extends AstNode>
void
scope(List<N> nodes, Scope scope)
           
 void withNewDeclarationScope(AstNode definingNode, Scope scope, NodeImplBase.Scoped scoped)
           
 void withNewLabelScope(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
 
Methods inherited from interface net.jangaroo.jooc.ast.AstNode
getSymbol, scope, visit
 

Constructor Detail

NodeImplBase

public NodeImplBase()
Method Detail

generate

public void generate(JsWriter out)
              throws IOException
Specified by:
generate in interface CodeGenerator
Throws:
IOException

analyze

public void analyze(AstNode parentNode)
Specified by:
analyze in interface AstNode

scope

public <N extends AstNode> void scope(List<N> nodes,
                                      Scope scope)

analyze

public <N extends AstNode> void analyze(AstNode parent,
                                        List<N> nodes)

withNewDeclarationScope

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

withNewLabelScope

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


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