public class FunctionInfo
extends java.lang.Object
Constructor and Description |
---|
FunctionInfo(QuercusContext quercus,
ClassDef classDef,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addTempVar(java.lang.String name)
Adds a temp variable.
|
FunctionInfo |
copy() |
protected FunctionInfo |
createCopy() |
java.lang.String |
createTempVar() |
VarInfo |
createVar(StringValue name)
Returns the variable.
|
protected VarInfo |
createVarInfo(StringValue name) |
ClassDef |
getDeclaringClass()
Gets the owning class.
|
Function |
getFunction()
Returns the actual function.
|
java.lang.String |
getName() |
QuercusContext |
getQuercus()
Returns the owning quercus.
|
int |
getTempIndex() |
java.util.Collection<java.lang.String> |
getTempVariables()
Returns the temp variables.
|
java.util.Collection<VarInfo> |
getVariables()
Returns the variables.
|
boolean |
hasThis()
Return true if the function allows $this
|
boolean |
isClosure()
True for a closure function (top-level script).
|
boolean |
isConstructor()
True for a constructor
|
boolean |
isFinal() |
boolean |
isGlobal()
True for a global function (top-level script).
|
boolean |
isMethod()
True for a method.
|
boolean |
isOutUsed()
Returns true if the out is used.
|
boolean |
isPageMain()
True for a main function (top-level script).
|
boolean |
isPageStatic()
True for a static function (top-level script).
|
boolean |
isReadOnly()
Returns true for a read-only function, i.e.
|
boolean |
isReturnsReference()
True if the function returns a reference.
|
boolean |
isStaticClassMethod()
True for a static class method.
|
boolean |
isUsesGlobal()
True if the global statement is used.
|
boolean |
isUsesSymbolTable()
True if the function uses the symbol table
|
boolean |
isVariableArgs()
True if the function has variable numbers of arguments
|
boolean |
isVariableVar()
True if the function has variable vars.
|
void |
setClosure(boolean isClosure)
True for a closure.
|
void |
setConstructor(boolean isConstructor)
True for a constructor.
|
void |
setFunction(Function fun)
Sets the actual function.
|
void |
setGlobal(boolean isGlobal)
True for a global function.
|
void |
setHasThis(boolean hasThis) |
void |
setModified()
True for a non-read-only function
|
void |
setOutUsed()
Set true if the out is used.
|
void |
setPageMain(boolean isPageMain)
True for a main function (top-level script).
|
void |
setPageStatic(boolean isPageStatic)
True for a static function (top-level script).
|
void |
setReturnsReference(boolean isReturnsReference)
True if the function returns a reference.
|
void |
setStaticClassMethod(boolean isStaticClassMethod)
True for a static class method.
|
void |
setUsesGlobal(boolean isUsesGlobal)
True if the global statement is used.
|
void |
setUsesSymbolTable(boolean isUsesSymbolTable)
True if the function uses the symbol table
|
void |
setVariableArgs(boolean isVariableArgs)
True if the function has variable numbers of arguments
|
void |
setVariableVar(boolean isVariableVar)
True if the function has variable vars
|
java.lang.String |
toString() |
public FunctionInfo(QuercusContext quercus, ClassDef classDef, java.lang.String name)
public FunctionInfo copy()
protected FunctionInfo createCopy()
public QuercusContext getQuercus()
public java.lang.String getName()
public Function getFunction()
public void setFunction(Function fun)
public boolean isGlobal()
public void setGlobal(boolean isGlobal)
public void setClosure(boolean isClosure)
public boolean isClosure()
public boolean isFinal()
public boolean isPageMain()
public void setPageMain(boolean isPageMain)
public boolean isPageStatic()
public void setPageStatic(boolean isPageStatic)
public void setHasThis(boolean hasThis)
public boolean hasThis()
public ClassDef getDeclaringClass()
public boolean isMethod()
public boolean isStaticClassMethod()
public void setStaticClassMethod(boolean isStaticClassMethod)
public boolean isConstructor()
public void setConstructor(boolean isConstructor)
public boolean isReturnsReference()
public void setReturnsReference(boolean isReturnsReference)
public boolean isVariableVar()
public void setVariableVar(boolean isVariableVar)
public boolean isVariableArgs()
public void setVariableArgs(boolean isVariableArgs)
public boolean isUsesSymbolTable()
public void setUsesSymbolTable(boolean isUsesSymbolTable)
public boolean isUsesGlobal()
public void setUsesGlobal(boolean isUsesGlobal)
public boolean isOutUsed()
public void setOutUsed()
public boolean isReadOnly()
public void setModified()
public VarInfo createVar(StringValue name)
protected VarInfo createVarInfo(StringValue name)
public java.util.Collection<VarInfo> getVariables()
public void addTempVar(java.lang.String name)
public java.util.Collection<java.lang.String> getTempVariables()
public int getTempIndex()
public java.lang.String createTempVar()
public java.lang.String toString()
toString
in class java.lang.Object