Patch to java/text/DateFormat.java

Gerhard Paulus gpaulus at stud.uni-frankfurt.de
Mon Feb 1 14:59:38 PST 1999


Hello Dirk,

> What about the notion of automatically checking the signatures?

there should be a number of .class analyzers around. 
One is in Jacob, the Java database I'm working on
(http://www.rz.uni-frankfurt.de/~gpaulus). 
See a sample usage below for public and protected methods 
and constructors of a given .class.  


Bye,
Gerhard


class testClasses {

static public void main(String[] params) { 

String classFile= "samples\\easy\\Person.class" ; 
DBClass dbClass= new DBClass() ;
dbClass.className= "Person" ;

Jacob j= new Jacob() ;
j.readClassFile(classFile, dbClass) ;

DBMethod method= null ;
for (int i= 0; i < dbClass.nMethods ; i++) {
	method= dbClass.methods[i] ;
	switch (method.modifier) {
	case Jacob.ACC_PUBLIC  :
	case Jacob.ACC_PROTECTED  :
System.out.println(method.methodName +": "+ method.signature) ;
		break ;
	default :
		break ;
	}
}

}

}


More information about the kaffe mailing list