com.caucho.quercus.expr
Class UnaryRefExpr

java.lang.Object
  extended by com.caucho.quercus.expr.Expr
      extended by com.caucho.quercus.expr.AbstractUnaryExpr
          extended by com.caucho.quercus.expr.UnaryRefExpr
Direct Known Subclasses:
UnaryRefExprPro

public class UnaryRefExpr
extends AbstractUnaryExpr

Represents a PHP reference argument.


Field Summary
 
Fields inherited from class com.caucho.quercus.expr.AbstractUnaryExpr
_expr
 
Fields inherited from class com.caucho.quercus.expr.Expr
COMPILE_ARG_MAX
 
Constructor Summary
UnaryRefExpr(Expr expr)
           
UnaryRefExpr(Location location, Expr expr)
           
 
Method Summary
 Expr createAssignFrom(QuercusParser parser, AbstractVarExpr leftHandSide)
          Creates an assignment using this value as the right hand side.
 Value eval(Env env)
          Evaluates the expression.
 Value evalArg(Env env, boolean isTop)
          Evaluates the expression.
 Var evalVar(Env env)
          Evaluates the expression.
 boolean isRef()
          Returns true for a reference.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.quercus.expr.AbstractUnaryExpr
getExpr
 
Methods inherited from class com.caucho.quercus.expr.Expr
assign, canRead, createAssign, createAssignRef, createCall, createClassConst, createClassField, createClassField, createCopy, createDeref, createFieldGet, createFieldGet, createIsset, createRef, createUnset, evalArgs, evalArray, evalArrayAssign, evalAssignRef, evalAssignValue, evalBoolean, evalChar, evalConstant, evalConstantPrefix, evalConstantSuffix, evalCopy, evalDirty, evalDouble, evalIsset, evalLong, evalObject, evalPostIncrement, evalPreIncrement, evalRef, evalString, evalStringValue, evalTop, evalUnsetArray, evalValue, getFileName, getFunctionLocation, getLine, getLocation, getLocationLine, isArray, isAssign, isBoolean, isConstant, isDouble, isFalse, isLiteral, isLong, isNumber, isString, isTrue, isVar, print
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnaryRefExpr

public UnaryRefExpr(Location location,
                    Expr expr)

UnaryRefExpr

public UnaryRefExpr(Expr expr)
Method Detail

isRef

public boolean isRef()
Returns true for a reference.

Overrides:
isRef in class Expr

createAssignFrom

public Expr createAssignFrom(QuercusParser parser,
                             AbstractVarExpr leftHandSide)
Creates an assignment using this value as the right hand side.

Overrides:
createAssignFrom in class Expr

eval

public Value eval(Env env)
Evaluates the expression.

Specified by:
eval in class Expr
Parameters:
env - the calling environment.
Returns:
the expression value.

evalArg

public Value evalArg(Env env,
                     boolean isTop)
Evaluates the expression.

Overrides:
evalArg in class Expr
Parameters:
env - the calling environment.
Returns:
the expression value.

evalVar

public Var evalVar(Env env)
Evaluates the expression.

Overrides:
evalVar in class Expr
Parameters:
env - the calling environment.
Returns:
the expression value.

toString

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