Class SimpleReference<T extends StaticTypedSlot>
- java.lang.Object
-
- com.google.javascript.rhino.jstype.SimpleReference<T>
-
- All Implemented Interfaces:
StaticTypedRef,StaticRef
- Direct Known Subclasses:
SymbolTable.Reference
public class SimpleReference<T extends StaticTypedSlot> extends java.lang.Object implements StaticTypedRef
A simple immutable reference.- Author:
- [email protected] (Nick Santos)
-
-
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:StaticTypedRefThe variable that this reference points to.- Specified by:
getSymbolin interfaceStaticRef- Specified by:
getSymbolin interfaceStaticTypedRef
-
getNode
public final Node getNode()
Description copied from interface:StaticRefThe node where the reference lives.
-
getSourceFile
public final StaticSourceFile getSourceFile()
Description copied from interface:StaticRefThe source file where the reference lives.- Specified by:
getSourceFilein interfaceStaticRef
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-