public interface SoyObjectType extends SoyType
Object types are always referred to by their fully-qualified name; That is, there's no concept of packages or scopes in this type system (those concepts are already factored out before the type definition reaches this point.)
Important: Do not use outside of Soy code (treat as superpackage-private).
SoyType.Kind| Modifier and Type | Method and Description |
|---|---|
String |
getFieldAccessor(String fieldName,
SoyBackendKind backend)
Return the expression (including the leading '.' or '[') used to access
the value of the field, for a given output context.
|
String |
getFieldImport(String fieldName,
SoyBackendKind backend)
In some cases, accessing a field requires importing a symbol into the
generated code (example being protobuf extension fields which require
importing the extension type).
|
SoyType |
getFieldType(String fieldName)
Return the data type of the field with the given name; If there's no such
field, then return
null. |
String |
getName()
Return the fully-qualified name of this object type.
|
String |
getNameForBackend(SoyBackendKind backend)
Return the fully-qualified name of this type for a given output context.
|
getKind, isAssignableFrom, isInstance, javaTypeString getName()
String getNameForBackend(SoyBackendKind backend)
backend - Which backend we're generating code for.SoyType getFieldType(String fieldName)
null.fieldName - The name of the field.String getFieldAccessor(String fieldName, SoyBackendKind backend)
fieldName - Name of the field.backend - Which backend we're generating code for.String getFieldImport(String fieldName, SoyBackendKind backend)
null.fieldName - The name of the field being accessed.backend - Which backend we're generating code for.