Re: changing methods access modifires in runtime?
- From: "Daniel Pitts" <googlegroupie@xxxxxxxxxxxxx>
- Date: 7 Jan 2007 17:06:10 -0800
Ehsan Khoddam mohammadi wrote:
Hi, Is it possible to change an access modifire on runtime?
consider this example:
public Class Test {
Test (boolean isPublic,...){
....
if (!isPublic)
//changing someMethod() to public
}
private void someMethod(){
....
}
....
}
thanx
Not without class instrumentation, and I doubt you *really* want to do
this anyway...
What is the underlying problem you are trying to solve? There are
probable many ways to do what you want.
.
- References:
- changing methods access modifires in runtime?
- From: Ehsan Khoddam mohammadi
- changing methods access modifires in runtime?
- Prev by Date: Re: Create request in JSP and handling XML
- Next by Date: Verifying signed jar files from C
- Previous by thread: changing methods access modifires in runtime?
- Next by thread: Re: changing methods access modifires in runtime?
- Index(es):
Relevant Pages
|