[prev in list] [next in list] [prev in thread] [next in thread]
List: bcel-user
Subject: Determining Local Variable Context
From: <rvm () thingfind ! com>
Date: 2004-08-05 18:59:46
Message-ID: 20040805185951.A170A3948 () sitemail ! everyone ! net
[Download RAW message or body]
Hi everyone,
I'm trying to determine the context of a local variable. I'm using inner classes, \
and these inner classes are instantiated off of an instance of the outer class. The \
example below provides some info. Basically, I want to know if BCEL can distinguish \
between innerA and innerB. It cannot use the class names or any other seemingly \
obvious entries. I have lengthy reasons for this. Instead, is there any way to \
determine which instance object (a or b) is used to instantiate innerA or innerB? If \
this is feasible in any means possible in BCEL, I will be interested. I'm not sure \
if this is too much detail for BCEL. Any help will be appreciated.
public class A {
public class Inner {...}
}
public class B extends A {
public class Inner extends A.Inner {...}
public static void main(String args[]) {
A a = new A();
A.Inner innerA = a.new Inner(); //want to record that "a" was used
B b = new B();
B.Inner innerB = b.new Inner(); //want to record that "b" was used
}
}
_____________________________________________________________
Get free email chat news and more ---> http://www.thingfind.com
Send a virtual greeting card!--->http://thingfind.com/cards/create.html
Free domain names!--->http://signup.nom.vg
---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic