com.caucho.quercus.expr
Class CallExpr

java.lang.Object
  extended by com.caucho.quercus.expr.Expr
      extended by com.caucho.quercus.expr.CallExpr
Direct Known Subclasses:
CallExprPro, CallPredicateExprPro, FunDefineExprPro

public class CallExpr
extends Expr

A "foo(...)" function call.


Field Summary
protected  Expr[] _args
           
protected  boolean _isRef
           
protected  java.lang.String _name
           
protected  java.lang.String _nsName
           
 
Fields inherited from class com.caucho.quercus.expr.Expr
COMPILE_ARG_MAX
 
Constructor Summary
CallExpr(Location location, java.lang.String name, java.util.ArrayList<Expr> args)
           
CallExpr(Location location, java.lang.String name, Expr[] args)
           
CallExpr(java.lang.String name, java.util.ArrayList<Expr> args)
           
CallExpr(java.lang.String name, Expr[] args)
           
 
Method Summary
 Expr createCopy(ExprFactory factory)
          Returns the copy of the value.
 Value eval(Env env)
          Evaluates the expression.
 Value[] evalArguments(Env env)
           
 Value evalCopy(Env env)
          Evaluates the expression.
 Value evalRef(Env env)
          Evaluates the expression.
 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, 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, 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

_name

protected final java.lang.String _name

_nsName

protected final java.lang.String _nsName

_args

protected final Expr[] _args

_isRef

protected boolean _isRef
Constructor Detail

CallExpr

public CallExpr(Location location,
                java.lang.String name,
                java.util.ArrayList<Expr> args)

CallExpr

public CallExpr(Location location,
                java.lang.String name,
                Expr[] args)

CallExpr

public CallExpr(java.lang.String name,
                java.util.ArrayList<Expr> args)

CallExpr

public CallExpr(java.lang.String name,
                Expr[] args)
Method Detail

getName

public java.lang.String getName()
Returns the name.


getFunctionLocation

public java.lang.String getFunctionLocation()
Returns the location if known.

Overrides:
getFunctionLocation in class Expr

createCopy

public Expr createCopy(ExprFactory factory)
Returns the copy of the value.

Overrides:
createCopy in class Expr
Parameters:
location -

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.

evalArguments

public Value[] evalArguments(Env env)

toString

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