S
soup_or_power
Hi Experts
In Perl it is possible to determine the caller. Is there an equivalent
function in Java? Approximately, this is what I want to do
class A {
function f () {
if (caller is B) do B stuff;
if (caller is C) do C stuff;
}
class B extends A{}
class C extends A{}
Thanks for your help.
In Perl it is possible to determine the caller. Is there an equivalent
function in Java? Approximately, this is what I want to do
class A {
function f () {
if (caller is B) do B stuff;
if (caller is C) do C stuff;
}
class B extends A{}
class C extends A{}
Thanks for your help.