com.caucho.es.parser
Class PackageExpr

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

class PackageExpr
extends Expr

Expression representing a Java package, i.e. a partial class.


Field Summary
private  java.lang.String name
           
private  Expr rawExpr
           
 
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) PackageExpr(Block block)
           
private PackageExpr(Block block, Expr rawExpr, java.lang.String name)
           
 
Method Summary
(package private) static Expr create(Block block, Expr rawExpr, java.lang.String name)
           
(package private)  Expr fieldReference(ESId id)
          Gets the field of the current expr
(package private)  Expr fieldReference(Expr expr)
          Gets the field of the current expr
(package private)  int getType()
          Returns the javascript type of the expression.
(package private)  Expr getTypeExpr()
           
(package private)  void printImpl()
           
(package private)  void setType(int type)
           
(package private)  CallExpr startCall()
           
(package private)  CallExpr startNew()
           
 
Methods inherited from class com.caucho.es.parser.Expr
assign, binaryOp, cast, conditional, delete, doVoid, error, exprStatement, getFilename, getJavaClass, getLine, isNum, isNumeric, isSimple, killValue, next, postfix, prefix, print, printBoolean, printBooleanImpl, printExpr, printInt32, printInt32Impl, printInt64, printInt64Impl, printJava, printJavaClass, printJavaImpl, printJavaString, printLiteral, printNum, printNumImpl, printStr, printString, printStringImpl, setBoolean, setTop, setUsed, typeof, unaryOp
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

rawExpr

private Expr rawExpr

name

private java.lang.String name
Constructor Detail

PackageExpr

private PackageExpr(Block block,
Expr rawExpr,
java.lang.String name)

PackageExpr

PackageExpr(Block block)
Method Detail

create

static Expr create(Block block,
Expr rawExpr,
java.lang.String name)

setType

void setType(int type)

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

fieldReference

Expr fieldReference(ESId id)
throws ESException
Description copied from class: Expr
Gets the field of the current expr
Overrides:
fieldReference in class Expr

fieldReference

Expr fieldReference(Expr expr)
Description copied from class: Expr
Gets the field of the current expr
Overrides:
fieldReference in class Expr

startCall

CallExpr startCall()
throws ESException
Overrides:
startCall in class Expr

startNew

CallExpr startNew()
throws ESException
Overrides:
startNew in class Expr

printImpl

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