SoyType.Kind| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
static IntType |
getInstance()
Return the single instance of this type.
|
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.
|
String |
toString() |
public SoyType.Kind getKind()
SoyTypepublic boolean isInstance(SoyValue value)
SoyTypevalue - The value to test.public Class<? extends SoyValue> javaType()
SoyTypepublic static IntType getInstance()
public boolean isAssignableFrom(SoyType srcType)
SoyTypesrcType.isAssignableFrom in interface SoyTypesrcType - The type of the incoming value.