Deal with the damned changes they made to javap output.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2721 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
+5
-5
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/perl -w
|
#!/usr/bin/perl -w
|
||||||
#
|
#
|
||||||
# $Id: matchclasses,v 1.2 2002/10/08 22:02:13 mdb Exp $
|
# $Id: matchclasses,v 1.3 2003/07/24 21:26:40 mdb Exp $
|
||||||
#
|
#
|
||||||
# A script which inspects a hierarchy of classes and generates lists of
|
# A script which inspects a hierarchy of classes and generates lists of
|
||||||
# classes that match specified criterion. The criterion are that a class
|
# classes that match specified criterion. The criterion are that a class
|
||||||
@@ -108,7 +108,7 @@ while (@gclasses) {
|
|||||||
|
|
||||||
# interfaces are now at the end of the line
|
# interfaces are now at the end of the line
|
||||||
my @ifaces;
|
my @ifaces;
|
||||||
if ($goods =~ s: implements (.*)$::g) {
|
if ($goods =~ s: implements ([A-Za-z0-9.\$]+)::g) {
|
||||||
my $idefs = $1;
|
my $idefs = $1;
|
||||||
$idefs =~ s:\s+$::g;
|
$idefs =~ s:\s+$::g;
|
||||||
$idefs =~ s:\. :\$:g;
|
$idefs =~ s:\. :\$:g;
|
||||||
@@ -118,7 +118,7 @@ while (@gclasses) {
|
|||||||
|
|
||||||
# now the parent class or parent interfaces are at the end
|
# now the parent class or parent interfaces are at the end
|
||||||
my @parents;
|
my @parents;
|
||||||
if ($goods =~ s: extends (.*)$::g) {
|
if ($goods =~ s: extends ([A-Za-z0-9.\$]+)::g) {
|
||||||
my $pdefs = $1;
|
my $pdefs = $1;
|
||||||
$pdefs =~ s:\s+$::g;
|
$pdefs =~ s:\s+$::g;
|
||||||
$pdefs =~ s:\. :\$:g;
|
$pdefs =~ s:\. :\$:g;
|
||||||
@@ -128,10 +128,10 @@ while (@gclasses) {
|
|||||||
|
|
||||||
# last is the class name
|
# last is the class name
|
||||||
my $class;
|
my $class;
|
||||||
if ($goods =~ s: class (.*)$::g) {
|
if ($goods =~ s: class ([A-Za-z0-9.\$]+)::g) {
|
||||||
$class = $1;
|
$class = $1;
|
||||||
$class =~ s: ::g;
|
$class =~ s: ::g;
|
||||||
} elsif ($goods =~ s: interface (.*)$::g) {
|
} elsif ($goods =~ s: interface ([A-Za-z0-9.\$]+)::g) {
|
||||||
$class = $1;
|
$class = $1;
|
||||||
$class =~ s: ::g;
|
$class =~ s: ::g;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user