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 java.lang.Object implements StaticReference<JSType>
A simple immutable reference.
-
-
Constructor Summary
Constructors Constructor Description SimpleReference(T symbol, Node node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node
getNode()
The node where the reference lives.StaticSourceFile
getSourceFile()
The source file where the reference lives.T
getSymbol()
The variable that this reference points to.java.lang.String
toString()
-
-
-
Method Detail
-
getSymbol
public final T getSymbol()
Description copied from interface:StaticReference
The variable that this reference points to.- Specified by:
getSymbol
in interfaceStaticReference<T extends StaticSlot<JSType>>
-
getNode
public final Node getNode()
Description copied from interface:StaticReference
The node where the reference lives.- Specified by:
getNode
in interfaceStaticReference<T extends StaticSlot<JSType>>
-
getSourceFile
public final StaticSourceFile getSourceFile()
Description copied from interface:StaticReference
The source file where the reference lives.- Specified by:
getSourceFile
in interfaceStaticReference<T extends StaticSlot<JSType>>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-