public class SimpleSlot extends Object implements StaticTypedSlot<JSType>, Serializable
StaticTypedSlot<JSType>.| Constructor and Description |
|---|
SimpleSlot(String name,
JSType type,
boolean inferred) |
| Modifier and Type | Method and Description |
|---|---|
StaticTypedRef<JSType> |
getDeclaration()
Gets the declaration of this symbol.
|
JSDocInfo |
getJSDocInfo()
Gets the JSDoc for this slot.
|
String |
getName()
Gets the name of the slot.
|
JSType |
getType()
Returns the type information, if any, for this slot.
|
TypeI |
getTypeI()
Returns the type information as a
TypeI. |
boolean |
isTypeInferred()
Returns whether the type has been inferred (as opposed to declared).
|
public String getName()
StaticSlotgetName in interface StaticSlotpublic JSType getType()
StaticTypedSlotgetType in interface StaticTypedSlot<JSType>null if no type is declared for it.public final TypeI getTypeI()
StaticTypedSlotTypeI.getTypeI in interface StaticTypedSlot<JSType>public boolean isTypeInferred()
StaticTypedSlotisTypeInferred in interface StaticTypedSlot<JSType>public StaticTypedRef<JSType> getDeclaration()
StaticTypedSlotgetDeclaration in interface StaticTypedSlot<JSType>getDeclaration in interface StaticSlotpublic JSDocInfo getJSDocInfo()
StaticSlotgetJSDocInfo in interface StaticSlotCopyright © 2009-2017 Google. All Rights Reserved.