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 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:StaticTypedRef
The variable that this reference points to.- Specified by:
getSymbol
in interfaceStaticRef
- Specified by:
getSymbol
in interfaceStaticTypedRef
-
getNode
public final Node getNode()
Description copied from interface:StaticRef
The node where the reference lives.
-
getSourceFile
public final StaticSourceFile getSourceFile()
Description copied from interface:StaticRef
The source file where the reference lives.- Specified by:
getSourceFile
in interfaceStaticRef
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-