com.caucho.quercus.expr
Class BinaryAssignExpr

java.lang.Object
  extended by com.caucho.quercus.expr.Expr
      extended by com.caucho.quercus.expr.BinaryAssignExpr
Direct Known Subclasses:
BinaryAssignExprPro

public class BinaryAssignExpr
extends Expr

Represents a PHP assignment expression.


Field Summary
protected  Expr _value
           
protected  AbstractVarExpr _var
           
 
Fields inherited from class com.caucho.quercus.expr.Expr
COMPILE_ARG_MAX
 
Constructor Summary
BinaryAssignExpr(AbstractVarExpr var, Expr value)
           
BinaryAssignExpr(Location location, AbstractVarExpr var, Expr value)
           
 
Method Summary
 Expr createCopy(ExprFactory factory)
          Creates a assignment
 Value eval(Env env)
          Evaluates the expression.
 Value evalCopy(Env env)
          Evaluates the expression.
 Value evalRef(Env env)
          Evaluates the expression.
 boolean isAssign()
          Returns true if a static false value.
 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, createRef, createUnset, evalArg, evalArgs, evalArray, evalArrayAssign, evalAssignRef, evalAssignValue, evalBoolean, evalChar, evalConstant, evalConstantPrefix, evalConstantSuffix, evalDirty, evalDouble, evalIsset, evalLong, evalObject, evalPostIncrement, evalPreIncrement, evalString, evalStringValue, evalTop, evalUnsetArray, evalValue, evalVar, getFileName, getFunctionLocation, getLine, getLocation, getLocationLine, isArray, 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

_var

protected final AbstractVarExpr _var

_value

protected final Expr _value
Constructor Detail

BinaryAssignExpr

public BinaryAssignExpr(Location location,
                        AbstractVarExpr var,
                        Expr value)

BinaryAssignExpr

public BinaryAssignExpr(AbstractVarExpr var,
                        Expr value)
Method Detail

createCopy

public Expr createCopy(ExprFactory factory)
Creates a assignment

Overrides:
createCopy in class Expr
Parameters:
location -

isAssign

public boolean isAssign()
Returns true if a static false value.

Overrides:
isAssign 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.

evalCopy

public Value evalCopy(Env env)
Evaluates the expression.

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

evalRef

public Value evalRef(Env env)
Evaluates the expression.

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

toString

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