|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.quercus.expr.VarInfo
com.caucho.quercus.expr.InfoVarPro
public class InfoVarPro
Information about a variable's use in a function.
| Constructor Summary | |
|---|---|
InfoVarPro(StringValue name,
FunctionInfo function)
|
|
InfoVarPro(VarInfo var)
|
|
| Method Summary | |
|---|---|
void |
generateInit(PhpWriter out,
java.lang.String varName,
java.lang.String argName)
Generates the function initialization code |
int |
getArgumentIndex()
Returns the argument indext |
java.lang.String |
getExpectedClass()
The type hinted expected class |
java.lang.String |
getSymbolName()
Gets the symbol index |
ExprType |
getType()
Returns the analyzed type |
boolean |
isArgument()
True if the variable is a function argument |
boolean |
isArrayModified()
|
boolean |
isAssigned()
True if the variable is assigned in the function. |
boolean |
isDefaultArg()
True if the arg has a default value |
boolean |
isEnvVar()
True if the variable is used from the symbol table, e.g. |
boolean |
isInitializedVar()
True if the variable is initialized directly function foo() { global $a; } |
boolean |
isJavaLong()
|
boolean |
isLocalVar()
Var variables stored as Java variables. |
boolean |
isReadOnly()
Returns true for a read-only variable, i.e. |
boolean |
isRefArgument()
True if the variable is a reference function argument |
boolean |
isSuperGlobal()
Superglobals always load from $_GLOBAL |
boolean |
isSymbolVar()
Var variables stored as Java variables. |
boolean |
isValue()
Value variables stored as Java locals. |
boolean |
isVar()
Variables must be stored as Var if they are used as references or grabbed from the symbol table. |
void |
printInitType(PhpWriter out,
boolean isVariableArgs)
Generates the function initialization code |
void |
setArgument(boolean isArgument)
True if the variable is a function argument |
void |
setArgumentIndex(int index)
Sets the argument index |
void |
setArrayModified(boolean isArrayModified)
|
void |
setAssigned()
True if the variable is assigned in the function, e.g. |
void |
setDefaultArg(boolean isDefaultArg)
True if the arg has a default value. |
void |
setExpectedClass(java.lang.String expectedClass)
The type hinted expected class |
void |
setInitializedVar(boolean isInit)
True if the variable is initialized directly function foo() { global $a; } |
void |
setRefArgument()
True if the variable is a reference function argument |
void |
setSymbolName(java.lang.String symbolName)
Sets the symbol index |
void |
setVar()
Sets as modified, e.g. |
ExprType |
withType(ExprType type)
Updates the analyzed type |
| Methods inherited from class com.caucho.quercus.expr.VarInfo |
|---|
getFunction, getName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InfoVarPro(StringValue name,
FunctionInfo function)
public InfoVarPro(VarInfo var)
| Method Detail |
|---|
public boolean isArgument()
public void setArgument(boolean isArgument)
public void setArgumentIndex(int index)
public int getArgumentIndex()
public void setSymbolName(java.lang.String symbolName)
public java.lang.String getSymbolName()
public java.lang.String getExpectedClass()
public void setExpectedClass(java.lang.String expectedClass)
public boolean isDefaultArg()
public void setDefaultArg(boolean isDefaultArg)
public boolean isReadOnly()
public boolean isAssigned()
public void setAssigned()
public boolean isInitializedVar()
public void setInitializedVar(boolean isInit)
public boolean isRefArgument()
public void setRefArgument()
public boolean isSuperGlobal()
public void setVar()
public boolean isVar()
public boolean isValue()
public boolean isLocalVar()
public boolean isEnvVar()
public boolean isSymbolVar()
public boolean isJavaLong()
public boolean isArrayModified()
public void setArrayModified(boolean isArrayModified)
public ExprType getType()
public ExprType withType(ExprType type)
public void printInitType(PhpWriter out,
boolean isVariableArgs)
throws java.io.IOException
java.io.IOException
public void generateInit(PhpWriter out,
java.lang.String varName,
java.lang.String argName)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||