net.jangaroo.jooc.ast
Class ObjectLiteral

java.lang.Object
  extended by net.jangaroo.jooc.ast.NodeImplBase
      extended by net.jangaroo.jooc.ast.Expr
          extended by net.jangaroo.jooc.ast.ObjectLiteral
All Implemented Interfaces:
AstNode

public class ObjectLiteral
extends Expr

Author:
Andreas Gawecki

Nested Class Summary
 
Nested classes/interfaces inherited from class net.jangaroo.jooc.ast.NodeImplBase
NodeImplBase.Scoped
 
Constructor Summary
ObjectLiteral(JooSymbol lBrace, CommaSeparatedList<ObjectField> fields, JooSymbol optComma, JooSymbol rBrace)
           
 
Method Summary
 void analyze(AstNode parentNode)
           
 List<? extends AstNode> getChildren()
           
 CommaSeparatedList<ObjectField> getFields()
           
 JooSymbol getLBrace()
           
 JooSymbol getOptComma()
           
 JooSymbol getRBrace()
           
 JooSymbol getSymbol()
           
 void scope(Scope scope)
           
 void visit(AstVisitor visitor)
           
 
Methods inherited from class net.jangaroo.jooc.ast.Expr
getType, isCompileTimeConstant, isRuntimeConstant, setType
 
Methods inherited from class net.jangaroo.jooc.ast.NodeImplBase
analyze, getParentNode, makeChildren, scope, withNewDeclarationScope, withNewLabelScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectLiteral

public ObjectLiteral(JooSymbol lBrace,
                     CommaSeparatedList<ObjectField> fields,
                     JooSymbol optComma,
                     JooSymbol rBrace)
Parameters:
lBrace - the left brace
fields - the object fields
optComma - null for the time being, Flex compc does not accept a trailing comma, contrary to array literals...
rBrace - the right brace
Method Detail

getChildren

public List<? extends AstNode> getChildren()
Specified by:
getChildren in interface AstNode
Overrides:
getChildren in class NodeImplBase

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

getSymbol

public JooSymbol getSymbol()

getLBrace

public JooSymbol getLBrace()

getFields

public CommaSeparatedList<ObjectField> getFields()

getOptComma

public JooSymbol getOptComma()

getRBrace

public JooSymbol getRBrace()


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