Package com.google.javascript.jscomp
Class SymbolTable.Symbol
- java.lang.Object
-
- com.google.javascript.rhino.jstype.SimpleSlot
-
- com.google.javascript.jscomp.SymbolTable.Symbol
-
- All Implemented Interfaces:
StaticSlot<JSType>,java.io.Serializable
- Enclosing class:
- SymbolTable
public static final class SymbolTable.Symbol extends SimpleSlot
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SymbolTable.ReferencedefineReferenceAt(Node n)SymbolTable.ReferencegetDeclaration()Gets the declaration of this symbol.NodegetDeclarationNode()FunctionTypegetFunctionType()JSDocInfogetJSDocInfo()Gets the JSDoc for this slot.SymbolTable.SymbolScopegetPropertyScope()java.lang.StringgetSourceFileName()booleaninExterns()booleaninGlobalScope()booleanisDocOnlyParameter()Whether this is a variable that's only in JSDoc.booleanisLexicalVariable()Whether this is a variable in a lexical scope.booleanisProperty()Whether this is a property of another variable.java.lang.StringtoString()-
Methods inherited from class com.google.javascript.rhino.jstype.SimpleSlot
getName, getType, isTypeInferred
-
-
-
-
Method Detail
-
getDeclaration
public SymbolTable.Reference getDeclaration()
Description copied from interface:StaticSlotGets the declaration of this symbol. May not exist.- Specified by:
getDeclarationin interfaceStaticSlot<JSType>- Overrides:
getDeclarationin classSimpleSlot
-
getFunctionType
public FunctionType getFunctionType()
-
defineReferenceAt
public SymbolTable.Reference defineReferenceAt(Node n)
-
inGlobalScope
public boolean inGlobalScope()
-
inExterns
public boolean inExterns()
-
getDeclarationNode
public Node getDeclarationNode()
-
getSourceFileName
public java.lang.String getSourceFileName()
-
getPropertyScope
public SymbolTable.SymbolScope getPropertyScope()
-
getJSDocInfo
public JSDocInfo getJSDocInfo()
Description copied from interface:StaticSlotGets the JSDoc for this slot.- Specified by:
getJSDocInfoin interfaceStaticSlot<JSType>- Overrides:
getJSDocInfoin classSimpleSlot
-
isProperty
public boolean isProperty()
Whether this is a property of another variable.
-
isLexicalVariable
public boolean isLexicalVariable()
Whether this is a variable in a lexical scope.
-
isDocOnlyParameter
public boolean isDocOnlyParameter()
Whether this is a variable that's only in JSDoc.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-