An
IReference
represents a reference-by-name to an {@link IDefinition}.
References are used by the various definition classes to refer to other definitions; for example, ClassDefinition
stores a reference to its base class and VariableDefinition
stores a reference to its type.
A reference can resolve to different definitions in different projects. For example, a reference to the Object
class might resolve to the Object
class from playerglobal.swc
in a web project and to the Object
class from airglobal.swc
in an AIR project.
There are a variety of implementations of this interface that represent different kinds of references, such as unqualified names, multinames, etc.
To construct an {@link IReference}, use the methods in {@link ReferenceFactory}.