|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.quercus.env.Value
com.caucho.quercus.env.Callback
com.caucho.quercus.function.AbstractFunction
com.caucho.quercus.program.Function
public class Function
Represents sequence of statements.
| Field Summary | |
|---|---|
protected Arg[] |
_args
|
protected Arg[] |
_closureUseArgs
|
protected java.lang.String |
_comment
|
protected boolean |
_hasReturn
|
protected FunctionInfo |
_info
|
protected boolean |
_isReturnsReference
|
protected java.lang.String |
_name
|
protected Statement |
_statement
|
| Fields inherited from class com.caucho.quercus.function.AbstractFunction |
|---|
_bindingClass, _declaringClassName, _isClosure, _isConstructor, _isFinal, _isStatic, _parseIndex, _visibility |
| Fields inherited from class com.caucho.quercus.env.Value |
|---|
NULL_VALUE_ARRAY, SCALAR_V |
| Constructor Summary | |
|---|---|
Function(ExprFactory exprFactory,
Location location,
java.lang.String name,
FunctionInfo info,
Arg[] args,
Statement[] statements)
|
|
| Method Summary | |
|---|---|
Value |
call(Env env,
Expr[] args)
|
Value |
call(Env env,
Value[] args)
Evaluates the function. |
Value |
callCopy(Env env,
Expr[] args)
|
Value |
callCopy(Env env,
Value[] args)
Evaluates the function, returning a copy |
Value |
callImpl(Env env,
Value[] args,
boolean isRef,
Arg[] useParams,
Value[] useArgs)
|
Value |
callMethod(Env env,
QuercusClass qClass,
Value qThis,
Value[] args)
Evaluates the method call. |
Value |
callMethodRef(Env env,
QuercusClass qClass,
Value qThis,
Value[] args)
Evaluates the method call, returning a reference. |
Value |
callRef(Env env,
Expr[] args)
|
Value |
callRef(Env env,
Value[] args)
Evaluates the function, returning a reference. |
Value[] |
evalArguments(Env env,
Expr fun,
Expr[] args)
Evaluates a function's argument, handling ref vs non-ref |
Value |
execute(Env env)
|
Arg[] |
getArgs()
Returns the args. |
Arg[] |
getClosureUseArgs()
Returns the args. |
java.lang.String |
getComment()
Returns the documentation for this function. |
ClassDef |
getDeclaringClass()
|
java.lang.String |
getDeclaringClassName()
|
FunctionInfo |
getInfo()
|
java.lang.String |
getName()
Returns the name. |
protected boolean |
isMethod()
|
boolean |
isObjectMethod()
|
boolean |
isReturnsReference()
True for a returns reference. |
void |
setClosureUseArgs(Arg[] useArgs)
Returns the args. |
void |
setComment(java.lang.String comment)
Sets the documentation for this function. |
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.quercus.function.AbstractFunction |
|---|
call, call, call, call, call, call, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callRef, callRef, callRef, callRef, callRef, callRef, errorPrivateAccess, errorProtectedAccess, getActualFunction, getBindingClass, getBindingClassName, getCallbackName, getCompilationName, getLocation, getType, isAbstract, isBoolean, isCallUsesSymbolTable, isCallUsesVariableArgs, isClosure, isConstructor, isDouble, isFinal, isGlobal, isInternal, isLong, isObject, isPrivate, isProtected, isPublic, isStatic, isString, isValid, setBindingClass, setClosure, setConstructor, setDeclaringClassName, setFinal, setGlobal, setParseIndex, setStatic, setVisibility, toFun |
| Methods inherited from class com.caucho.quercus.env.Callback |
|---|
callArray, callArray, callArray, toCallable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final FunctionInfo _info
protected final boolean _isReturnsReference
protected final java.lang.String _name
protected final Arg[] _args
protected final Statement _statement
protected boolean _hasReturn
protected java.lang.String _comment
protected Arg[] _closureUseArgs
| Constructor Detail |
|---|
public Function(ExprFactory exprFactory,
Location location,
java.lang.String name,
FunctionInfo info,
Arg[] args,
Statement[] statements)
| Method Detail |
|---|
public java.lang.String getName()
getName in class AbstractFunctionpublic ClassDef getDeclaringClass()
getDeclaringClass in class AbstractFunctionpublic FunctionInfo getInfo()
protected boolean isMethod()
public java.lang.String getDeclaringClassName()
getDeclaringClassName in class AbstractFunctionpublic Arg[] getArgs()
getArgs in class AbstractFunctionpublic Arg[] getClosureUseArgs()
public void setClosureUseArgs(Arg[] useArgs)
public boolean isObjectMethod()
public boolean isReturnsReference()
isReturnsReference in class AbstractFunctionpublic void setComment(java.lang.String comment)
public java.lang.String getComment()
getComment in class AbstractFunctionpublic Value execute(Env env)
public Value[] evalArguments(Env env,
Expr fun,
Expr[] args)
evalArguments in class AbstractFunctionargs - the user's arguments
public Value call(Env env,
Expr[] args)
public Value callCopy(Env env,
Expr[] args)
public Value callRef(Env env,
Expr[] args)
public Value call(Env env,
Value[] args)
AbstractFunction
call in interface Callablecall in class AbstractFunctionenv - the calling environment
public Value callCopy(Env env,
Value[] args)
AbstractFunction
callCopy in class AbstractFunction
public Value callRef(Env env,
Value[] args)
AbstractFunction
callRef in class AbstractFunction
public Value callImpl(Env env,
Value[] args,
boolean isRef,
Arg[] useParams,
Value[] useArgs)
public Value callMethod(Env env,
QuercusClass qClass,
Value qThis,
Value[] args)
AbstractFunction
callMethod in class AbstractFunction
public Value callMethodRef(Env env,
QuercusClass qClass,
Value qThis,
Value[] args)
AbstractFunction
callMethodRef in class AbstractFunctionpublic java.lang.String toString()
toString in class AbstractFunction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||