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.
| 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 |
| 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 |
ARGUMENTS
private static ESId ARGUMENTS
var
private Variable var
IdExpr
IdExpr(Block block,
Variable var)
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