net.jangaroo.jooc.ast
Class TryStatement

java.lang.Object
  extended by net.jangaroo.jooc.ast.NodeImplBase
      extended by net.jangaroo.jooc.ast.Directive
          extended by net.jangaroo.jooc.ast.Statement
              extended by net.jangaroo.jooc.ast.KeywordStatement
                  extended by net.jangaroo.jooc.ast.TryStatement
All Implemented Interfaces:
AstNode, CodeGenerator

public class TryStatement
extends KeywordStatement

Author:
Andreas Gawecki

Nested Class Summary
 
Nested classes/interfaces inherited from class net.jangaroo.jooc.ast.NodeImplBase
NodeImplBase.Scoped
 
Constructor Summary
TryStatement(JooSymbol symTry, BlockStatement block, List<Catch> catches)
           
TryStatement(JooSymbol symTry, BlockStatement block, List<Catch> catches, JooSymbol symFinally, BlockStatement finallyBlock)
           
 
Method Summary
 void analyze(AstNode parentNode)
           
 BlockStatement getBlock()
           
 List<Catch> getCatches()
           
 BlockStatement getFinallyBlock()
           
 JooSymbol getSymFinally()
           
 void scope(Scope scope)
           
 void visit(AstVisitor visitor)
           
 
Methods inherited from class net.jangaroo.jooc.ast.KeywordStatement
getSymbol, getSymKeyword
 
Methods inherited from class net.jangaroo.jooc.ast.Directive
isClassMember, isStatic, setClassMember
 
Methods inherited from class net.jangaroo.jooc.ast.NodeImplBase
analyze, generate, scope, withNewDeclarationScope, withNewLabelScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TryStatement

public TryStatement(JooSymbol symTry,
                    BlockStatement block,
                    List<Catch> catches)

TryStatement

public TryStatement(JooSymbol symTry,
                    BlockStatement block,
                    List<Catch> catches,
                    JooSymbol symFinally,
                    BlockStatement finallyBlock)
Method Detail

visit

public void visit(AstVisitor visitor)
           throws IOException
Throws:
IOException

scope

public void scope(Scope scope)

analyze

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

getBlock

public BlockStatement getBlock()

getCatches

public List<Catch> getCatches()

getSymFinally

public JooSymbol getSymFinally()

getFinallyBlock

public BlockStatement getFinallyBlock()


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