com.caucho.es.parser
Class IdExpr

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

class IdExpr
extends Expr

Expr is an intermediate form representing an expression.


Field Summary
private static ESId ARGUMENTS
           
private  Variable var
           
 
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) IdExpr(Block block, Variable var)
           
 
Method Summary
(package private)  Expr assign(Expr value)
          Assigns the identifier to a value.
(package private)  Expr delete()
          The delete operator
(package private)  void exprStatement(Function fun)
           
(package private)  ESId getId()
           
(package private)  int getType()
          Returns the javascript type of the expression.
(package private)  Expr getTypeExpr()
           
(package private)  Variable getVar()
          Returns the underlying variable.
(package private)  boolean isGlobalScope()
           
(package private)  boolean isJavaGlobal()
          Returns true if the variable is a global represented as a Java field.
(package private)  boolean isJavaLocal()
           
(package private)  boolean isLocal()
           
(package private)  boolean isSimple()
           
(package private)  boolean isUsed()
           
(package private)  Expr postfix(int op)
          Handle autoincrement
(package private)  Expr prefix(int op)
          Handle autoincrement
(package private)  void printBooleanImpl()
           
(package private)  void printImpl()
           
(package private)  void printInt32Impl()
           
(package private)  void printJavaImpl()
           
(package private)  void printNumImpl()
           
(package private)  void printStringImpl()
           
(package private)  void setLocal()
           
(package private)  void setType(int type)
           
(package private)  void setUsed()
           
(package private)  CallExpr startCall()
          Creates a call expression from this id.
(package private)  CallExpr startNew()
           
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.es.parser.Expr
binaryOp, cast, conditional, doVoid, error, fieldReference, fieldReference, getFilename, getJavaClass, getLine, isNum, isNumeric, killValue, next, print, printBoolean, printExpr, printInt32, printInt64, printInt64Impl, printJava, printJavaClass, printJavaString, printLiteral, printNum, printStr, printString, setBoolean, setTop, typeof, unaryOp
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

ARGUMENTS

private static ESId ARGUMENTS

var

private Variable var
Constructor Detail

IdExpr

IdExpr(Block block,
Variable var)
Method Detail

setType

void setType(int type)

isLocal

boolean isLocal()

isJavaLocal

boolean isJavaLocal()

isJavaGlobal

boolean isJavaGlobal()
Returns true if the variable is a global represented as a Java field.

setUsed

void setUsed()
Overrides:
setUsed in class Expr

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

isSimple

boolean isSimple()
Overrides:
isSimple in class Expr

isGlobalScope

boolean isGlobalScope()

getVar

Variable getVar()
Returns the underlying variable.

isUsed

boolean isUsed()

setLocal

void setLocal()

getId

ESId getId()

delete

Expr delete()
Description copied from class: Expr
The delete operator
Overrides:
delete in class Expr

postfix

Expr postfix(int op)
Description copied from class: Expr
Handle autoincrement
Overrides:
postfix in class Expr

prefix

Expr prefix(int op)
Description copied from class: Expr
Handle autoincrement
Overrides:
prefix in class Expr

assign

Expr assign(Expr value)
throws ESException
Assigns the identifier to a value.
Overrides:
assign in class Expr

startCall

CallExpr startCall()
throws ESException
Creates a call expression from this id.
Overrides:
startCall in class Expr

startNew

CallExpr startNew()
throws ESException
Overrides:
startNew 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

printBooleanImpl

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

printInt32Impl

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

printStringImpl

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

printImpl

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

printJavaImpl

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object