Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Compil3r.Quad
Class MethodSummary.State  view MethodSummary.State download MethodSummary.State.java

java.lang.Object
  extended byCompil3r.Quad.MethodSummary.State
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
MethodSummary

public static final class MethodSummary.State
extends java.lang.Object
implements java.lang.Cloneable

Records the state of the intramethod analysis at some point in the method.


Field Summary
(package private)  java.lang.Object[] registers
           
 
Constructor Summary
MethodSummary.State(int nRegisters)
          Return a new state with the given number of registers.
 
Method Summary
 MethodSummary.State copy()
          Return a shallow copy of this state.
 void dump(java.io.PrintStream out)
          Dump a textual representation of the state to the given print stream.
 boolean merge(int i, java.lang.Object b)
          Merge the given node or set of nodes into the given register.
 boolean merge(MethodSummary.State that)
          Merge two states.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

registers

final java.lang.Object[] registers
Constructor Detail

MethodSummary.State

public MethodSummary.State(int nRegisters)
Return a new state with the given number of registers.

Method Detail

copy

public MethodSummary.State copy()
Return a shallow copy of this state. Sets of nodes are copied, but the individual nodes are not.


merge

public boolean merge(MethodSummary.State that)
Merge two states. Mutates this state, the other is unchanged.


merge

public boolean merge(int i,
                     java.lang.Object b)
Merge the given node or set of nodes into the given register.


dump

public void dump(java.io.PrintStream out)
Dump a textual representation of the state to the given print stream.