Re: Re: New Reflection/Beans API
"Stephen Colebourne" <[email protected]>
| Newsgroups | gmane.comp.jakarta.bcel.devel |
|---|---|
| Message-ID | <001e01c20bbb$dbf5bca0$c44e18d4@oemcomputer> |
> > However I have a question about the Class class. This class appears to > > require quite a lot of setting up to create an instance. Is there any > > factory method that I've missed to create instances of a Class? > > I'm a bit puzzled here, since you can not "create" > Class instances. You can only look them up, either > via getClass() or Class.forName(), (Class cl = Foo.class; > is just syntactic sugar). Yes this is what I was driving at. Is there an easy factory method to create bytecodes equivalent to: Class cl = Foo.class Also, is there a convenient method to create a Type object from a Class object? thanks Stephen