[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[aspectj-dev] staticinitializer
|
- From: Jake Whitehill <jrw@xxxxxxxx>
- Date: Wed, 5 Feb 2003 09:35:25 +0100 (MET)
- Delivered-to: aspectj-dev@eclipse.org
Hi,
I'm trying to implement the following:
I have three classes A, B, and C. In all three classes the static variable
x appears. I want to use advice to write static-initializer code for A, B,
and C which initializes the value of x to some class-dependent value. For
instance, I'd really like to have:
A.x = "A", B.x = "B", and C.x = "C"
But I don't know how to refer to the actual class being initialized from
within the static initializer.
Any suggestions?
Thanks
Jake