public class SimpleSlot extends Object implements StaticSlot<JSType>, Serializable
Constructor and Description |
---|
SimpleSlot(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.
|
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 String getName()
StaticSlot
getName
in interface StaticSlot<JSType>
public JSType getType()
StaticSlot
getType
in interface StaticSlot<JSType>
null
if no type is declared for it.public boolean isTypeInferred()
StaticSlot
isTypeInferred
in interface StaticSlot<JSType>
public StaticReference<JSType> getDeclaration()
StaticSlot
getDeclaration
in interface StaticSlot<JSType>
public JSDocInfo getJSDocInfo()
StaticSlot
getJSDocInfo
in interface StaticSlot<JSType>
Copyright © 2009–2016 Google. All rights reserved.