public class SimpleSlot extends java.lang.Object implements StaticSlot<JSType>, java.io.Serializable
| Constructor and Description |
|---|
SimpleSlot(java.lang.String name,
JSType type,
boolean inferred) |
| Modifier and Type | Method and Description |
|---|---|
StaticReference<JSType> |
getDeclaration()
Gets the declaration of this symbol.
|
JSDocInfo |
getJSDocInfo()
Gets the JSDoc for this slot.
|
java.lang.String |
getName()
Gets the name of the slot.
|
JSType |
getType()
Returns the type information, if any, for this slot.
|
boolean |
isTypeInferred()
Returns whether the type has been inferred (as opposed to declared).
|
public SimpleSlot(java.lang.String name,
JSType type,
boolean inferred)
public java.lang.String getName()
StaticSlotgetName in interface StaticSlot<JSType>public JSType getType()
StaticSlotgetType in interface StaticSlot<JSType>null if no type is declared for it.public boolean isTypeInferred()
StaticSlotisTypeInferred in interface StaticSlot<JSType>public StaticReference<JSType> getDeclaration()
StaticSlotgetDeclaration in interface StaticSlot<JSType>public JSDocInfo getJSDocInfo()
StaticSlotgetJSDocInfo in interface StaticSlot<JSType>