public abstract class SanitizedType extends PrimitiveType
| Modifier and Type | Class and Description |
|---|---|
static class |
SanitizedType.AttributesType
Type produced by templates whose kind is "attributes".
|
static class |
SanitizedType.CssType
Type produced by templates whose kind is "css".
|
static class |
SanitizedType.HtmlType
Type produced by templates whose kind is "html".
|
static class |
SanitizedType.JsType
Type produced by templates whose kind is "js".
|
static class |
SanitizedType.UriType
Type produced by templates whose kind is "uri".
|
SoyType.Kind| Constructor and Description |
|---|
SanitizedType() |
| Modifier and Type | Method and Description |
|---|---|
abstract SanitizedContent.ContentKind |
getContentKind() |
static SanitizedType |
getTypeForContentKind(SanitizedContent.ContentKind contentKind)
Given a content kind, return the corresponding soy type.
|
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() |
equals, hashCode, isAssignableFrompublic abstract SanitizedContent.ContentKind getContentKind()
public boolean isInstance(SoyValue value)
SoyTypevalue - The value to test.public Class<? extends SoyValue> javaType()
SoyTypepublic static SanitizedType getTypeForContentKind(@Nullable SanitizedContent.ContentKind contentKind)