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 NodegetNode()The node where the reference lives.StaticSourceFilegetSourceFile()The source file where the reference lives.TgetSymbol()The variable that this reference points to.java.lang.StringtoString()
-
-
-
Method Detail
-
getSymbol
public final T getSymbol()
Description copied from interface:StaticReferenceThe variable that this reference points to.- Specified by:
getSymbolin interfaceStaticReference<T extends StaticSlot<JSType>>
-
getNode
public final Node getNode()
Description copied from interface:StaticReferenceThe node where the reference lives.- Specified by:
getNodein interfaceStaticReference<T extends StaticSlot<JSType>>
-
getSourceFile
public final StaticSourceFile getSourceFile()
Description copied from interface:StaticReferenceThe source file where the reference lives.- Specified by:
getSourceFilein interfaceStaticReference<T extends StaticSlot<JSType>>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-