terp - the Codemesh Modular
Template Interpreter v1.3.337

com.codemesh.terp.data
Class FilePattern

java.lang.Object
  extended by com.codemesh.terp.data.FilePattern
All Implemented Interfaces:
java.io.Serializable

public final class FilePattern
extends java.lang.Object
implements java.io.Serializable

An ANT-style file pattern using asterisks to match anything and double asterisks to match hierarchies.

See Also:
Serialized Form

Field Summary
protected  boolean bHasDeepPattern
           
protected  java.util.regex.Pattern thePattern
           
protected  java.lang.String thePatternString
           
 
Method Summary
static FilePattern fromMap(FilePattern result, java.util.Map map)
           
static FilePattern fromMap(java.util.Map map)
           
static FilePattern fromString(java.lang.String pattern)
           
 java.util.regex.Pattern getPattern()
           
 boolean hasDeepPattern()
           
 boolean matches(java.lang.String path)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

thePatternString

protected java.lang.String thePatternString

thePattern

protected java.util.regex.Pattern thePattern

bHasDeepPattern

protected boolean bHasDeepPattern
Method Detail

fromString

public static FilePattern fromString(java.lang.String pattern)

fromMap

public static FilePattern fromMap(java.util.Map map)

fromMap

public static FilePattern fromMap(FilePattern result,
                                  java.util.Map map)

getPattern

public java.util.regex.Pattern getPattern()

matches

public boolean matches(java.lang.String path)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hasDeepPattern

public boolean hasDeepPattern()

terp - the Codemesh Modular
Template Interpreter v1.3.337

Copyright © 2008-2016 by Codemesh, Inc. All Rights Reserved.