Hi Hmil,

This is not a question of AspectJ. You should read the classes directly from
the JAR-Files (CLASSPATH), load each class and then do some reflection: 

for( String filename : <content of class.path> )
{
     Class
theClass=Class.forName(filename.replace(".class","").replace("/","."));
     Method[] methods=theClass.getDeclaredMethods();

    countClasses++;
    countMethods+=methods.length;
}

You can do this with AspectJ, but you still have to load each class: Aspects
do not apply on none loaded classes.

Regards Marko



--
View this message in context: 
http://aspectj.2085585.n4.nabble.com/Counting-of-Methods-Classes-tp4650617p4650618.html
Sent from the AspectJ - users mailing list archive at Nabble.com.
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to