com.caucho.quercus.expr
Class BinaryAppendExpr

java.lang.Object
  extended by com.caucho.quercus.expr.Expr
      extended by com.caucho.quercus.expr.BinaryAppendExpr
Direct Known Subclasses:
BinaryAppendExprPro

public class BinaryAppendExpr
extends Expr

Represents a PHP append ('.') expression.


Field Summary
 
Fields inherited from class com.caucho.quercus.expr.Expr
COMPILE_ARG_MAX
 
Constructor Summary
protected BinaryAppendExpr(Expr value, BinaryAppendExpr next)
           
 
Method Summary
 Value eval(Env env)
          Evaluates the expression, returning a Value, never a Var.
 Value evalConstantPrefix()
          Returns the first constant string, or null.
 Value evalConstantSuffix()
          Returns the tail constant string, or null.
 java.lang.String evalString(Env env)
          Evaluates the expression as a string
 BinaryAppendExpr getNext()
          Returns the next value in the append chain.
 Expr getValue()
          Returns the value expression.
 boolean isString()
          Returns true for a string.
 java.lang.String toString()
           
 
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, evalBoolean, evalChar, evalConstant, evalCopy, evalDirty, evalDouble, evalIsset, evalLong, evalObject, evalPostIncrement, evalPreIncrement, evalRef, evalStringValue, evalTop, evalUnsetArray, evalValue, evalVar, getFileName, getFunctionLocation, getLine, getLocation, getLocationLine, isArray, isAssign, isBoolean, isConstant, isDouble, isFalse, isLiteral, isLong, isNumber, isRef, isTrue, isVar, print
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinaryAppendExpr

protected BinaryAppendExpr(Expr value,
                           BinaryAppendExpr next)
Method Detail

getValue

public Expr getValue()
Returns the value expression.


getNext

public BinaryAppendExpr getNext()
Returns the next value in the append chain.


isString

public boolean isString()
Returns true for a string.

Overrides:
isString in class Expr

eval

public Value eval(Env env)
Description copied from class: Expr
Evaluates the expression, returning a Value, never a Var.

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

evalString

public java.lang.String evalString(Env env)
Description copied from class: Expr
Evaluates the expression as a string

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

evalConstantPrefix

public Value evalConstantPrefix()
Returns the first constant string, or null.

Overrides:
evalConstantPrefix in class Expr
Returns:
the expression value as a prefix.

evalConstantSuffix

public Value evalConstantSuffix()
Returns the tail constant string, or null.

Overrides:
evalConstantSuffix in class Expr
Returns:
the expression value as a suffix.

toString

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