com.caucho.es.parser
Class BinaryExpr

java.lang.Object
|
+--com.caucho.es.parser.Expr
|
+--com.caucho.es.parser.BinaryExpr
Direct Known Subclasses:
BooleanBinaryExpr

class BinaryExpr
extends Expr

Expr is an intermediate form representing an expression.


Field Summary
(package private)  boolean isSimple
           
(package private)  Expr left
           
(package private)  int op
           
(package private)  Expr right
           
(package private)  java.lang.String temp
           
 
Fields inherited from class com.caucho.es.parser.Expr
block, cl, filename, function, isTop, javaType, line, noValue, type, TYPE_BOOLEAN, TYPE_ES, TYPE_INTEGER, TYPE_JAVA, TYPE_LONG, TYPE_NUMBER, TYPE_STRING, TYPE_UNKNOWN, TYPE_VOID, withDepth
 
Constructor Summary
protected BinaryExpr(Block block, Expr left, Expr right, int op)
           
 
Method Summary
(package private) static Expr create(Block block, Expr left, Expr right, int op)
           
(package private)  void exprStatement(Function fun)
           
(package private)  int getType()
          Returns the javascript type of the expression.
(package private)  void printBoolean()
           
(package private)  void printBooleanImpl()
           
(package private)  void printImpl()
           
(package private)  void printInt32Impl()
           
(package private)  void printNumImpl()
           
 
Methods inherited from class com.caucho.es.parser.Expr
assign, binaryOp, cast, conditional, delete, doVoid, error, fieldReference, fieldReference, getFilename, getJavaClass, getLine, getTypeExpr, isNum, isNumeric, isSimple, killValue, next, postfix, prefix, print, printExpr, printInt32, printInt64, printInt64Impl, printJava, printJavaClass, printJavaImpl, printJavaString, printLiteral, printNum, printStr, printString, printStringImpl, setBoolean, setTop, setUsed, startCall, startNew, typeof, unaryOp
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

left

Expr left

right

Expr right

op

int op

temp

java.lang.String temp

isSimple

boolean isSimple
Constructor Detail

BinaryExpr

protected BinaryExpr(Block block,
Expr left,
Expr right,
int op)
Method Detail

create

static Expr create(Block block,
Expr left,
Expr right,
int op)
throws ESException

getType

int getType()
Description copied from class: Expr
Returns the javascript type of the expression.
Overrides:
getType in class Expr

exprStatement

void exprStatement(Function fun)
throws ESException
Overrides:
exprStatement in class Expr

printNumImpl

void printNumImpl()
throws java.io.IOException
Overrides:
printNumImpl in class Expr

printInt32Impl

void printInt32Impl()
throws java.io.IOException
Overrides:
printInt32Impl in class Expr

printBoolean

void printBoolean()
throws java.io.IOException
Overrides:
printBoolean in class Expr

printBooleanImpl

void printBooleanImpl()
throws java.io.IOException
Overrides:
printBooleanImpl in class Expr

printImpl

void printImpl()
throws java.io.IOException
Overrides:
printImpl in class Expr