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
-
Method Summary
Modifier and TypeMethodDescriptionfinal Node
getNode()
The node where the reference lives.final StaticSourceFile
The source file where the reference lives.final T
The variable that this reference points to.toString()
-
Constructor Details
-
SimpleReference
-
-
Method Details
-
getSymbol
Description copied from interface:StaticReference
The variable that this reference points to.- Specified by:
getSymbol
in interfaceStaticReference<T extends StaticSlot<JSType>>
-
getNode
Description copied from interface:StaticReference
The node where the reference lives.- Specified by:
getNode
in interfaceStaticReference<T extends StaticSlot<JSType>>
-
getSourceFile
Description copied from interface:StaticReference
The source file where the reference lives.- Specified by:
getSourceFile
in interfaceStaticReference<T extends StaticSlot<JSType>>
-
toString
-