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:
StaticTypedSlot
,StaticSlot
,Serializable
- Enclosing class:
SymbolTable
A symbol-table entry
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the declaration of this symbol.@Nullable Node
Gets the JSDoc for this slot.@Nullable String
@Nullable JSDocInfo.Visibility
int
hashCode()
boolean
Whether this is a variable that's only in JSDoc.boolean
Whether this is a variable in a lexical scope.boolean
Whether this is a property of another variable.toString()
Methods inherited from class com.google.javascript.rhino.jstype.SimpleSlot
getName, getScope, getType, isTypeInferred
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getDeclaration
Description copied from interface:StaticTypedSlot
Gets the declaration of this symbol. May not exist.- Specified by:
getDeclaration
in interfaceStaticSlot
- Specified by:
getDeclaration
in interfaceStaticTypedSlot
- Overrides:
getDeclaration
in classSimpleSlot
-
getFunctionType
-
defineReferenceAt
-
getDeclarationNode
-
getSourceFileName
-
getPropertyScope
-
getJSDocInfo
Description copied from interface:StaticSlot
Gets the JSDoc for this slot.- Specified by:
getJSDocInfo
in interfaceStaticSlot
- Overrides:
getJSDocInfo
in classSimpleSlot
-
getVisibility
-
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
-