com.caucho.quercus.gen
Class AnalyzeInfo

java.lang.Object
  extended by com.caucho.quercus.gen.AnalyzeInfo

public class AnalyzeInfo
extends java.lang.Object

Information about a function.


Field Summary
protected  java.util.HashMap<StringValue,VarExprPro> _varMap
           
 
Constructor Summary
AnalyzeInfo(QuercusProgram program, FunctionInfo function)
           
AnalyzeInfo(QuercusProgram program, FunctionInfo function, LoopAnalyzeInfo parentLoop)
           
 
Method Summary
 void addVar(VarExprPro var)
          Adds the matching variable.
 void clear()
          Clears a var map.
 AnalyzeInfo copy()
          Copies a var map.
 AnalyzeInfo createLoop(AnalyzeInfo contInfo, AnalyzeInfo breakInfo)
          Creates a loop
 AbstractFunction findFunction(java.lang.String name)
          Returns the matching function.
 FunctionInfo getFunction()
          Returns the function.
 VarExprPro getVar(StringValue name)
          Returns the matching variable.
 boolean isInitialBlock()
          Returns true for the initial block.
 void merge(AnalyzeInfo info)
          Merge with a joining var map.
 void mergeLoopBreakInfo()
          Returns the break info for the containing loop.
 void mergeLoopContinueInfo()
          Returns the continue info for the containing loop.
 void setInitialBlock(boolean isInitialBlock)
           
 void setUnknown()
          Clears a var map to the unknown state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_varMap

protected final java.util.HashMap<StringValue,VarExprPro> _varMap
Constructor Detail

AnalyzeInfo

public AnalyzeInfo(QuercusProgram program,
                   FunctionInfo function,
                   LoopAnalyzeInfo parentLoop)

AnalyzeInfo

public AnalyzeInfo(QuercusProgram program,
                   FunctionInfo function)
Method Detail

getFunction

public FunctionInfo getFunction()
Returns the function.


setInitialBlock

public void setInitialBlock(boolean isInitialBlock)

isInitialBlock

public boolean isInitialBlock()
Returns true for the initial block.


mergeLoopContinueInfo

public void mergeLoopContinueInfo()
Returns the continue info for the containing loop.


mergeLoopBreakInfo

public void mergeLoopBreakInfo()
Returns the break info for the containing loop.


getVar

public VarExprPro getVar(StringValue name)
Returns the matching variable.


addVar

public void addVar(VarExprPro var)
Adds the matching variable.


clear

public void clear()
Clears a var map.


setUnknown

public void setUnknown()
Clears a var map to the unknown state.


copy

public AnalyzeInfo copy()
Copies a var map.


createLoop

public AnalyzeInfo createLoop(AnalyzeInfo contInfo,
                              AnalyzeInfo breakInfo)
Creates a loop


merge

public void merge(AnalyzeInfo info)
Merge with a joining var map.


findFunction

public AbstractFunction findFunction(java.lang.String name)
Returns the matching function.