org.dellroad.jc.cgen.analysis
Class TypeAnalysis
java.lang.Object
org.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.
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 |
TypeAnalysis
public TypeAnalysis(LocalDefs localDefs)
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
.