Class ComponentTemplateImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      ComponentTemplateImpl​(Resource resource, java.util.List<TemplateToken> tokens, java.util.Map<java.lang.String,​Location> componentIds, boolean extension, boolean strictMixinParameters, java.util.Map<java.lang.String,​java.util.List<TemplateToken>> overrides)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​Location> getComponentIds()
      Identifies StartComponentTokens with a non-blank id, mapping the id to its location (within the template).
      java.util.List<TemplateToken> getExtensionPointTokens​(java.lang.String extensionPointId)
      Returns a list of tokens associated with an extension point, or null if this template neither defines the extension point nor overrides it.
      Resource getResource()
      Returns the resource that was parsed to form the template.
      java.util.List<TemplateToken> getTokens()
      Returns a list of tokens that were parsed from the template.
      boolean isExtension()
      Returns true if this component template is an extension of its parent class' template.
      boolean isMissing()
      Returns false.
      boolean usesStrictMixinParameters()
      Indicates whether lax (the old default) or strict (the new default) mixin parameters are used.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComponentTemplateImpl

        public ComponentTemplateImpl​(Resource resource,
                                     java.util.List<TemplateToken> tokens,
                                     java.util.Map<java.lang.String,​Location> componentIds,
                                     boolean extension,
                                     boolean strictMixinParameters,
                                     java.util.Map<java.lang.String,​java.util.List<TemplateToken>> overrides)
        Parameters:
        resource - the resource from which the template was parsed
        tokens - the tokens of the template, a copy of this list will be made
        componentIds - ids of components defined in the template
        extension - if this template is an extension of a parent-class template
        strictMixinParameters - if the template was parsed with the 5.4 DTD and is strict about mixin parameters being fully qualified
        overrides - id to list of tokens for that override