Class SimpleReference<T extends StaticSlot<JSType>>
java.lang.Object
com.google.javascript.rhino.jstype.SimpleReference<T>
- All Implemented Interfaces:
StaticReference<JSType>
- Direct Known Subclasses:
SymbolTable.Reference
public class SimpleReference<T extends StaticSlot<JSType>>
extends Object
implements StaticReference<JSType>
A simple immutable reference.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal NodegetNode()The node where the reference lives.final StaticSourceFileThe source file where the reference lives.final TThe variable that this reference points to.toString()
-
Constructor Details
-
SimpleReference
-
-
Method Details
-
getSymbol
Description copied from interface:StaticReferenceThe variable that this reference points to.- Specified by:
getSymbolin interfaceStaticReference<T extends StaticSlot<JSType>>
-
getNode
Description copied from interface:StaticReferenceThe node where the reference lives.- Specified by:
getNodein interfaceStaticReference<T extends StaticSlot<JSType>>
-
getSourceFile
Description copied from interface:StaticReferenceThe source file where the reference lives.- Specified by:
getSourceFilein interfaceStaticReference<T extends StaticSlot<JSType>>
-
toString
-