Class ModelFactory


  • public class ModelFactory
    extends java.lang.Object
    A factoy for turbine's implementations of Element and TypeMirror.

    The model provided by those interfaces contains cycles between types and elements, e.g. Element.asType() and DeclaredType.asElement(). Turbine's internal model uses an immutable representation of classes and types which cannot represent cycles directly. Instead, the implementations in TurbineElement and TurbineTypeMirror maintain a reference to this class, and use it to lazily construct edges in the type and element graph.