com.caucho.es.parser
Class TopExpr

java.lang.Object
|
+--com.caucho.es.parser.Expr
|
+--com.caucho.es.parser.TopExpr

class TopExpr
extends Expr

Expr is an intermediate form representing an expression.


Field Summary
(package private)  Expr child
           
(package private)  Expr type
           
 
Fields inherited from class com.caucho.es.parser.Expr
block, cl, filename, function, isTop, javaType, line, noValue, TYPE_BOOLEAN, TYPE_ES, TYPE_INTEGER, TYPE_JAVA, TYPE_LONG, TYPE_NUMBER, TYPE_STRING, TYPE_UNKNOWN, TYPE_VOID, withDepth
 
Constructor Summary
(package private) TopExpr(Block block, Expr child, Expr type)
           
 
Method Summary
(package private)  int getType()
          Returns the javascript type of the expression.
(package private)  Expr getTypeExpr()
           
(package private)  void print()
           
(package private)  void setUsed()
           
 
Methods inherited from class com.caucho.es.parser.Expr
assign, binaryOp, cast, conditional, delete, doVoid, error, exprStatement, fieldReference, fieldReference, getFilename, getJavaClass, getLine, isNum, isNumeric, isSimple, killValue, next, postfix, prefix, printBoolean, printBooleanImpl, printExpr, printImpl, printInt32, printInt32Impl, printInt64, printInt64Impl, printJava, printJavaClass, printJavaImpl, printJavaString, printLiteral, printNum, printNumImpl, printStr, printString, printStringImpl, setBoolean, setTop, 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

child

Expr child

type

Expr type
Constructor Detail

TopExpr

TopExpr(Block block,
Expr child,
Expr type)
Method Detail

getType

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

getTypeExpr

Expr getTypeExpr()
Overrides:
getTypeExpr in class Expr

setUsed

void setUsed()
Overrides:
setUsed in class Expr

print

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