net.jangaroo.jooc
Class InfixOpExpr

java.lang.Object
  extended by net.jangaroo.jooc.NodeImplBase
      extended by net.jangaroo.jooc.InfixOpExpr

public class InfixOpExpr
extends NodeImplBase

A BinaryOpExpr for AS3 infix operators that are not supported directly in JS. For JS, the operand is generated as a function receiving the two arguments.

Author:
Frank Wienberg

Nested Class Summary
 
Nested classes/interfaces inherited from class net.jangaroo.jooc.NodeImplBase
NodeImplBase.Scoped
 
Constructor Summary
protected InfixOpExpr(net.jangaroo.jooc.Expr arg1, JooSymbol op, net.jangaroo.jooc.Expr arg2)
           
 
Method Summary
 net.jangaroo.jooc.Expr analyze(net.jangaroo.jooc.AstNode parentNode, AnalyzeContext context)
           
protected  void generateAsApiCode(JsWriter out)
          Default implementation generates same code as JS.
protected  void generateJsCode(JsWriter out)
           
 JooSymbol getSymbol()
           
 IdeDeclaration getType()
           
 void scope(Scope scope)
           
 void setType(IdeDeclaration type)
           
 
Methods inherited from class net.jangaroo.jooc.NodeImplBase
analyze, generateCode, scope, withNewDeclarationScope, withNewLabelScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfixOpExpr

protected InfixOpExpr(net.jangaroo.jooc.Expr arg1,
                      JooSymbol op,
                      net.jangaroo.jooc.Expr arg2)
Method Detail

scope

public void scope(Scope scope)

generateAsApiCode

protected void generateAsApiCode(JsWriter out)
                          throws IOException
Description copied from class: NodeImplBase
Default implementation generates same code as JS. Overwritten where this must differ.

Overrides:
generateAsApiCode in class NodeImplBase
Throws:
IOException

generateJsCode

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

analyze

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

getSymbol

public JooSymbol getSymbol()

getType

public IdeDeclaration getType()

setType

public void setType(IdeDeclaration type)


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