public class SimpleSlot extends java.lang.Object implements StaticTypedSlot<JSType>, java.io.Serializable
StaticTypedSlot<JSType>
.Modifier and Type | Field and Description |
---|---|
(package private) boolean |
inferred |
(package private) java.lang.String |
name |
private static long |
serialVersionUID |
(package private) JSType |
type |
Constructor and Description |
---|
SimpleSlot(java.lang.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.
|
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).
|
private static final long serialVersionUID
final java.lang.String name
final JSType type
final boolean inferred
public SimpleSlot(java.lang.String name, JSType type, boolean inferred)
public java.lang.String getName()
StaticSlot
getName
in interface StaticSlot
public JSType getType()
StaticTypedSlot
getType
in interface StaticTypedSlot<JSType>
null
if no type is declared for it.public boolean isTypeInferred()
StaticTypedSlot
isTypeInferred
in interface StaticTypedSlot<JSType>
public StaticTypedRef<JSType> getDeclaration()
StaticTypedSlot
getDeclaration
in interface StaticTypedSlot<JSType>
getDeclaration
in interface StaticSlot
public JSDocInfo getJSDocInfo()
StaticSlot
getJSDocInfo
in interface StaticSlot