com.google.template.soy.parseinfo
Class SoyFileInfo

java.lang.Object
  extended by com.google.template.soy.parseinfo.SoyFileInfo

public class SoyFileInfo
extends Object

Parsed info about a Soy file.


Nested Class Summary
static class SoyFileInfo.CssTagsPrefixPresence
          Enum for whether there are prefix expressions in the 'css' tags that a CSS name appears in.
 
Constructor Summary
SoyFileInfo(String fileName, String namespace, com.google.common.collect.ImmutableSortedSet<String> paramsFromAllTemplates, com.google.common.collect.ImmutableList<SoyTemplateInfo> templates, com.google.common.collect.ImmutableMap<String,SoyFileInfo.CssTagsPrefixPresence> cssNameMap)
          Constructor for internal use only.
 
Method Summary
 com.google.common.collect.ImmutableMap<String,SoyFileInfo.CssTagsPrefixPresence> getCssNames()
          Returns a map from each CSS name appearing in this file to its CssTagsPrefixPresence state.
 String getFileName()
          Returns the source Soy file's name.
 String getNamespace()
          Returns the Soy file's namespace.
 com.google.common.collect.ImmutableSortedSet<String> getParamsFromAllTemplates()
          Returns the set of params from all templates in this Soy file.
 com.google.common.collect.ImmutableList<SoyTemplateInfo> getTemplates()
          Returns the list of templates in this Soy file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoyFileInfo

public SoyFileInfo(String fileName,
                   String namespace,
                   com.google.common.collect.ImmutableSortedSet<String> paramsFromAllTemplates,
                   com.google.common.collect.ImmutableList<SoyTemplateInfo> templates,
                   com.google.common.collect.ImmutableMap<String,SoyFileInfo.CssTagsPrefixPresence> cssNameMap)
Constructor for internal use only.

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.

Parameters:
fileName - The source Soy file's name.
namespace - The Soy file's namespace.
paramsFromAllTemplates - Sorted list of params from all templates in this Soy file.
templates - List of templates in this Soy file.
Method Detail

getFileName

public String getFileName()
Returns the source Soy file's name.


getNamespace

public String getNamespace()
Returns the Soy file's namespace.


getParamsFromAllTemplates

public com.google.common.collect.ImmutableSortedSet<String> getParamsFromAllTemplates()
Returns the set of params from all templates in this Soy file.


getTemplates

public com.google.common.collect.ImmutableList<SoyTemplateInfo> getTemplates()
Returns the list of templates in this Soy file.


getCssNames

public com.google.common.collect.ImmutableMap<String,SoyFileInfo.CssTagsPrefixPresence> getCssNames()
Returns a map from each CSS name appearing in this file to its CssTagsPrefixPresence state.