com.caucho.quercus.expr
Class AbstractLongValuedExpr

java.lang.Object
  extended by com.caucho.quercus.expr.Expr
      extended by com.caucho.quercus.expr.AbstractLongValuedExpr

public abstract class AbstractLongValuedExpr
extends Expr

Represents a PHP expression.


Field Summary
 
Fields inherited from class com.caucho.quercus.expr.Expr
COMPILE_ARG_MAX
 
Constructor Summary
AbstractLongValuedExpr()
           
AbstractLongValuedExpr(Location location)
           
 
Method Summary
 Value eval(Env env)
          Evaluates the expression as a value.
 boolean evalBoolean(Env env)
          Evaluates the expression as a boolean.
 double evalDouble(Env env)
          Evaluates the expression as double
abstract  long evalLong(Env env)
          Evaluates the expression as a long.
 
Methods inherited from class com.caucho.quercus.expr.Expr
assign, canRead, createAssign, createAssignFrom, createAssignRef, createCall, createClassConst, createClassField, createClassField, createCopy, createDeref, createFieldGet, createFieldGet, createIsset, createRef, createUnset, evalArg, evalArgs, evalArray, evalArrayAssign, evalAssignRef, evalAssignValue, evalChar, evalConstant, evalConstantPrefix, evalConstantSuffix, evalCopy, evalDirty, evalIsset, evalObject, evalPostIncrement, evalPreIncrement, evalRef, evalString, evalStringValue, evalTop, evalUnsetArray, evalValue, evalVar, getFileName, getFunctionLocation, getLine, getLocation, getLocationLine, isArray, isAssign, isBoolean, isConstant, isDouble, isFalse, isLiteral, isLong, isNumber, isRef, isString, isTrue, isVar, print, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractLongValuedExpr

public AbstractLongValuedExpr(Location location)

AbstractLongValuedExpr

public AbstractLongValuedExpr()
Method Detail

eval

public Value eval(Env env)
Evaluates the expression as a value.

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

evalBoolean

public boolean evalBoolean(Env env)
Evaluates the expression as a boolean.

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

evalDouble

public double evalDouble(Env env)
Evaluates the expression as double

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

evalLong

public abstract long evalLong(Env env)
Evaluates the expression as a long.

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