org.mozilla.javascript.optimizer
Class Block

java.lang.Object
  |
  +--org.mozilla.javascript.optimizer.Block

public class Block
extends java.lang.Object


Constructor Summary
Block(int startNodeIndex, int endNodeIndex, Node[] statementNodes)
           
 
Method Summary
static Block[] buildBlocks(Node[] statementNodes)
           
 boolean doTypeFlow()
           
 int getBlockID()
           
 Node getEndNode()
           
 Block[] getPredecessorList()
           
 Node getStartNode()
           
 Block[] getSuccessorList()
           
 void initLiveOnEntrySets(VariableTable theVariables)
           
 boolean isLiveOnEntry(int index)
           
 void printLiveOnEntrySet(java.io.PrintWriter pw, VariableTable theVariables)
           
 void setBlockID(int id)
           
 void setPredecessorList(Block[] b)
           
 void setSuccessorList(Block[] b)
           
static java.lang.String toString(Block[] blockList, Node[] statementNodes)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Block

public Block(int startNodeIndex,
             int endNodeIndex,
             Node[] statementNodes)
Method Detail

setBlockID

public void setBlockID(int id)

getBlockID

public int getBlockID()

getStartNode

public Node getStartNode()

getEndNode

public Node getEndNode()

getPredecessorList

public Block[] getPredecessorList()

getSuccessorList

public Block[] getSuccessorList()

buildBlocks

public static Block[] buildBlocks(Node[] statementNodes)

toString

public static java.lang.String toString(Block[] blockList,
                                        Node[] statementNodes)

initLiveOnEntrySets

public void initLiveOnEntrySets(VariableTable theVariables)

doTypeFlow

public boolean doTypeFlow()

isLiveOnEntry

public boolean isLiveOnEntry(int index)

printLiveOnEntrySet

public void printLiveOnEntrySet(java.io.PrintWriter pw,
                                VariableTable theVariables)

setSuccessorList

public void setSuccessorList(Block[] b)

setPredecessorList

public void setPredecessorList(Block[] b)