🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8096

Gettging all classes in a package ?

#8096
From: Mikael Fransson
Date: Wed, 25 Apr 2001 09:49
17 lines
1188 bytes
im trying to make a method to gett all Classes in a Package
ex:
public static Class[] getAllClassesInPackage(String package)
{
    ...
    return classArray;
}

Class[] classes=ClassLister.getAllClassesInPackage("java.util");
for (int i = 0; i < classes.length; i++)
{
    System.out.println(classes[i].getName());
}

Any ideas ?

frasse@rings.se
Technical Details
Message-ID: <3ae69dfa$1_2@dnews>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,e2562564d66f3419,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-04-25 03:18:25 PST
From: "Mikael Fransson" <mikael.fransson@aspiro.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: Gettging all classes in a package ?
Date: Wed, 25 Apr 2001 11:49:53 +0200
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 193.15.113.253
Message-ID: <3ae69dfa$1_2@dnews>
X-Trace: dnews 988192250 193.15.113.253 (25 Apr 2001 02:50:50 -0700)
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews