com.caucho.quercus.expr
Class InfoVarTempPro

java.lang.Object
  extended by com.caucho.quercus.expr.VarInfo
      extended by com.caucho.quercus.expr.InfoVarPro
          extended by com.caucho.quercus.expr.InfoVarTempPro

public class InfoVarTempPro
extends InfoVarPro

Information about a variable's use in a function.


Constructor Summary
InfoVarTempPro(StringValue name)
           
 
Method Summary
 boolean isEnvVar()
          Variables stored in the Env symbol table
 boolean isLocalVar()
          Var variables stored as Java variables.
 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.
 
Methods inherited from class com.caucho.quercus.expr.InfoVarPro
generateInit, getArgumentIndex, getExpectedClass, getSymbolName, getType, isArgument, isArrayModified, isAssigned, isDefaultArg, isInitializedVar, isJavaLong, isReadOnly, isRefArgument, isSuperGlobal, printInitType, setArgument, setArgumentIndex, setArrayModified, setAssigned, setDefaultArg, setExpectedClass, setInitializedVar, setRefArgument, setSymbolName, setVar, withType
 
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

InfoVarTempPro

public InfoVarTempPro(StringValue name)
Method Detail

isVar

public boolean isVar()
Variables must be stored as Var if they are used as references or grabbed from the symbol table. $b = &$a; $b = 3; In this case, $a and $b must be a Var, never a Value since modifying $b will modify $a.

Overrides:
isVar in class InfoVarPro

isValue

public boolean isValue()
Value variables stored as Java locals. The variables must never be a Var.

Overrides:
isValue in class InfoVarPro

isLocalVar

public boolean isLocalVar()
Var variables stored as Java variables.

Overrides:
isLocalVar in class InfoVarPro

isEnvVar

public boolean isEnvVar()
Variables stored in the Env symbol table

Overrides:
isEnvVar in class InfoVarPro

isSymbolVar

public boolean isSymbolVar()
Var variables stored as Java variables.

Overrides:
isSymbolVar in class InfoVarPro