Code to analyze a source base for project lambda
Lawrence Kesteloot
lk at teamten.com
Wed Feb 3 15:27:22 PST 2010
LOC: about 100K
Total anonymous classes: 98
But with no constructor args: 79
And defining only one method: 66
And where the type is a SAM type: 57
Those that are recursive: 0
Those that reference 'this': 0
company.MonitoredDataSource.java:146: [Anon, OneMethodOnly,
NeedsMethod, SuperThis] uses an enclosing 'this'
company.MonitoredDataSource.java:157: [Anon, OneMethodOnly,
NeedsMethod, SuperThis] uses an enclosing 'this'
Those that reference an enclosing 'this': 2
Those that are interfaces: 41
Those that are classes: 16
Total distinct interfaces: 13
company.Function
java.io.FilenameFilter
java.lang.Iterable
java.lang.Runnable
java.util.Comparator
java.util.concurrent.Callable
java.util.concurrent.ThreadFactory
org.springframework.jdbc.core.PreparedStatementCreator
org.springframework.jdbc.core.ResultSetExtractor
org.springframework.jdbc.core.RowCallbackHandler
org.springframework.jdbc.core.RowMapper
org.springframework.jdbc.core.StatementCallback
org.springframework.jdbc.core.simple.ParameterizedRowMapper
Total distinct classes: 4
company.Filter
company.LazyLoadingMap
java.util.TimerTask
org.springframework.transaction.support.TransactionCallbackWithoutResult
On Wed, Feb 3, 2010 at 1:10 PM, Neal Gafter <neal at gafter.com> wrote:
> The code can be downloaded from http://www.javac.info/ijavac-Main.java
>
> On Wed, Feb 3, 2010 at 12:55 PM, Neal Gafter <neal at gafter.com> wrote:
>> Apparently it was rejected by the moderator last time. Here it is again.
>>
>> The enclosed code (Main.java) was thrown together hastily, but it
>> might be useful to analyze a source base for project lambda. Compile
>> and run it with tools.jar on the classpath (but on a mac, tools.jar is
>> always on the classpath). It acts just like javac, but printing
>> statistics before exiting. I used it to process most of the openjdk6
>> sources.
>>
>
>
More information about the lambda-dev
mailing list