net.jangaroo.jooc.ast
Class InfixOpExpr

java.lang.Object
  extended by net.jangaroo.jooc.ast.NodeImplBase
      extended by net.jangaroo.jooc.ast.Expr
          extended by net.jangaroo.jooc.ast.OpExpr
              extended by net.jangaroo.jooc.ast.BinaryOpExpr
                  extended by net.jangaroo.jooc.ast.InfixOpExpr
All Implemented Interfaces:
AstNode, CodeGenerator
Direct Known Subclasses:
AsExpr, IsExpr

public class InfixOpExpr
extends BinaryOpExpr

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.ast.NodeImplBase
NodeImplBase.Scoped
 
Constructor Summary
protected InfixOpExpr(Expr arg1, JooSymbol op, Expr arg2)
           
 
Method Summary
 void scope(Scope scope)
           
 void visit(AstVisitor visitor)
           
 
Methods inherited from class net.jangaroo.jooc.ast.BinaryOpExpr
analyze, getArg1, getArg2, getSymbol, isCompileTimeConstant
 
Methods inherited from class net.jangaroo.jooc.ast.OpExpr
getOp
 
Methods inherited from class net.jangaroo.jooc.ast.Expr
getType, setType
 
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

InfixOpExpr

protected InfixOpExpr(Expr arg1,
                      JooSymbol op,
                      Expr arg2)
Method Detail

visit

public void visit(AstVisitor visitor)
           throws IOException
Specified by:
visit in interface AstNode
Overrides:
visit in class BinaryOpExpr
Throws:
IOException

scope

public void scope(Scope scope)
Specified by:
scope in interface AstNode
Overrides:
scope in class BinaryOpExpr


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