com.codemesh.terp.data
Class FilePattern
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
thePatternString
protected java.lang.String thePatternString
thePattern
protected java.util.regex.Pattern thePattern
bHasDeepPattern
protected boolean bHasDeepPattern
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()
Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.