com.caucho.es.parser
Class UnaryExpr

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

class UnaryExpr
extends Expr

Expr is an intermediate form representing an expression.


Field Summary
(package private)  int op
           
(package private)  Expr term
           
 
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
(package private) UnaryExpr(Block block, Expr term, int op)
           
 
Method Summary
(package private)  void exprStatement(Function fun)
           
(package private)  int getType()
          Returns the javascript type of the expression.
(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, printBoolean, 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

term

Expr term

op

int op
Constructor Detail

UnaryExpr

UnaryExpr(Block block,
Expr term,
int op)
Method Detail

exprStatement

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

getType

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

printBooleanImpl

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

printInt32Impl

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

printNumImpl

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

printImpl

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