Class PathRegexMatcher


  • public class PathRegexMatcher
    extends TemplateSourceMatcher
    Matches the whole template source name (also known as template source path) with the given regular expression. Note that the template source name is relative to the template storage root defined by the TemplateLoader; it's not the full path of a file on the file system.
    Since:
    2.3.24
    • Constructor Summary

      Constructors 
      Constructor Description
      PathRegexMatcher​(java.lang.String regex)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(java.lang.String sourceName, java.lang.Object templateSource)  
      • Methods inherited from class java.lang.Object

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

      • matches

        public boolean matches​(java.lang.String sourceName,
                               java.lang.Object templateSource)
                        throws java.io.IOException
        Throws:
        java.io.IOException