Match abstract classes as well.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4393 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2006-10-04 02:01:00 +00:00
parent 5e55b0b343
commit d7bf98354e
@@ -48,7 +48,8 @@ public class GenUtil
/** A regular expression for matching the class or interface
* declaration. */
public static final Pattern NAME_PATTERN =
Pattern.compile("^\\s*public\\s+(interface|class)\\s+(\\S+)(\\W|$)");
Pattern.compile("^\\s*public\\s+(?:abstract\\s+)?" +
"(interface|class)\\s+(\\S+)(\\W|$)");
/**
* Returns the name of the supplied class as it would likely appear in code