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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user