|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.quercus.expr.Expr
com.caucho.quercus.expr.ClosureExpr
public class ClosureExpr
Represents a PHP closure expression.
Field Summary | |
---|---|
protected Function |
_fun
|
Fields inherited from class com.caucho.quercus.expr.Expr |
---|
COMPILE_ARG_MAX, NULL_ARGS |
Constructor Summary | |
---|---|
ClosureExpr(Location location,
Function fun)
|
Method Summary | |
---|---|
Expr |
createCopy(ExprFactory factory)
Returns the copy of the value. |
Expr |
createRef(QuercusParser parser)
Returns the reference of the value. |
Value |
eval(Env env)
Evaluates the expression. |
Value |
evalCopy(Env env)
Evaluates the expression. |
Function |
getFunction()
Returns the function |
java.lang.String |
getFunctionLocation()
Returns the location if known. |
java.lang.String |
getName()
Returns the name. |
java.lang.String |
toString()
|
Methods inherited from class com.caucho.quercus.expr.Expr |
---|
assign, canRead, createAssign, createAssignFrom, createAssignRef, createCall, createClassConst, createClassField, createClassField, createDeref, createFieldGet, createFieldGet, createIsset, createUnset, evalArg, evalArgs, evalArray, evalArrayAssign, evalArrayAssignTail, evalAssignRef, evalAssignValue, evalBoolean, evalChar, evalConstant, evalConstantPrefix, evalConstantSuffix, evalDirty, evalDouble, evalIsset, evalIssetValue, evalLong, evalObject, evalPostIncrement, evalPreIncrement, evalQuercusClass, evalRef, evalString, evalStringValue, evalTop, evalUnsetArray, evalValue, evalVar, getFileName, getLine, getLocation, getLocationLine, isArray, isAssign, isBoolean, isConstant, isDouble, isFalse, isLiteral, isLong, isNumber, isRef, isString, isTrue, isVar, print |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final Function _fun
Constructor Detail |
---|
public ClosureExpr(Location location, Function fun)
Method Detail |
---|
public java.lang.String getName()
public Function getFunction()
public java.lang.String getFunctionLocation()
getFunctionLocation
in class Expr
public Expr createRef(QuercusParser parser)
createRef
in class Expr
location
- public Expr createCopy(ExprFactory factory)
createCopy
in class Expr
location
- public Value eval(Env env)
eval
in class Expr
env
- the calling environment.
public Value evalCopy(Env env)
evalCopy
in class Expr
env
- the calling environment.
public java.lang.String toString()
toString
in class Expr
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |