SoyType.Kind| Modifier and Type | Field and Description |
|---|---|
static ListType |
EMPTY_LIST |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
SoyType |
getElementType() |
SoyType.Kind |
getKind()
Returns what kind of type this is.
|
int |
hashCode() |
boolean |
isAssignableFrom(SoyType srcType)
Returns true if a parameter or field of this type can be assigned from
a value of
srcType. |
boolean |
isInstance(SoyValue value)
Returns true if the given value is an instance of this type.
|
Class<? extends SoyValue> |
javaType()
Returns the java class for the the SoyValue subclass that is used to represent this type.
|
static ListType |
of(SoyType elementType) |
String |
toString() |
public static final ListType EMPTY_LIST
public SoyType.Kind getKind()
SoyTypepublic SoyType getElementType()
public boolean isAssignableFrom(SoyType srcType)
SoyTypesrcType.isAssignableFrom in interface SoyTypesrcType - The type of the incoming value.public boolean isInstance(SoyValue value)
SoyTypeisInstance in interface SoyTypevalue - The value to test.public Class<? extends SoyValue> javaType()
SoyType