public class SoyFileInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SoyFileInfo.CssTagsPrefixPresence
Enum for whether there are prefix expressions in the 'css' tags that a CSS name appears in.
|
| Constructor and Description |
|---|
SoyFileInfo(String fileName,
String namespace,
com.google.common.collect.ImmutableList<SoyTemplateInfo> templates,
com.google.common.collect.ImmutableMap<String,SoyFileInfo.CssTagsPrefixPresence> cssNameMap,
com.google.common.collect.ImmutableList<String> deltemplateNames)
Constructor for internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMap<String,SoyFileInfo.CssTagsPrefixPresence> |
getCssNames()
Returns a map from each CSS name appearing in this file to its CssTagsPrefixPresence state.
|
com.google.common.collect.ImmutableList<String> |
getDelTemplateNames()
Returns the fully qualified names of all deltemplates in the file.
|
String |
getFileName()
Returns the source Soy file's name.
|
String |
getNamespace()
Returns the Soy file's namespace.
|
com.google.common.collect.ImmutableList<com.google.protobuf.Descriptors.GenericDescriptor> |
getProtoDescriptors()
Returns a list of any protocol buffer types used by the templates.
|
com.google.common.collect.ImmutableList<SoyTemplateInfo> |
getTemplates()
Returns the list of templates in this Soy file.
|
public SoyFileInfo(String fileName, String namespace, com.google.common.collect.ImmutableList<SoyTemplateInfo> templates, com.google.common.collect.ImmutableMap<String,SoyFileInfo.CssTagsPrefixPresence> cssNameMap, com.google.common.collect.ImmutableList<String> deltemplateNames)
Important: Do not construct SoyFileInfo objects outside of Soy internal or Soy-generated code. User code that constructs SoyFileInfo objects will be broken by future Soy changes.
fileName - The source Soy file's name.namespace - The Soy file's namespace.templates - List of templates in this Soy file.public final String getFileName()
public final String getNamespace()
public final com.google.common.collect.ImmutableList<SoyTemplateInfo> getTemplates()
public final com.google.common.collect.ImmutableMap<String,SoyFileInfo.CssTagsPrefixPresence> getCssNames()
public com.google.common.collect.ImmutableList<com.google.protobuf.Descriptors.GenericDescriptor> getProtoDescriptors()
The elements are either Descriptors or EnumDescriptor objects.
public final com.google.common.collect.ImmutableList<String> getDelTemplateNames()