org.dellroad.jc.cgen.analysis
Class TypeAnalysis

java.lang.Object
  extended byorg.dellroad.jc.cgen.analysis.TypeAnalysis

public class TypeAnalysis
extends Object

Determines the run-time type of a reference local as best we can based on information provided by a LocalDefs object.


Constructor Summary
TypeAnalysis(LocalDefs localDefs)
           
 
Method Summary
 RefLikeType getExactType(Local local, Unit unit)
          Return the exact type of the reference local def if it's a reference type and the Java class is known exactly, else null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeAnalysis

public TypeAnalysis(LocalDefs localDefs)
Method Detail

getExactType

public RefLikeType getExactType(Local local,
                                Unit unit)
Return the exact type of the reference local def if it's a reference type and the Java class is known exactly, else null.