[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[aspectj-users] OnType Variables For Inter-Type Declarations
|
- From: "Jared D. Cottrell" <jcottr@xxxxxxxxx>
- Date: Fri, 29 Apr 2011 15:13:19 -0700
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=yt4sc9JKIxanc+XLfZzLNMvygd9f2XjkRacJ423XJjY=; b=ea6v8761N/YUJzCNWTKJ5Moo52bxIH7atQleqIwiMwArQ106oXzBAmQxY8/JNdAPtx 6WA7owQrEJw7D01uYQopVoI0c3EsigDOTIm5OEELJ7xBlnQCJ2dXm2pB9DiX+qTV2VwW 7GxcND1e2Yi66eYugeJm1J91ya4KyD5ofoXI8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qb13PRRhSoiYofufX9dkFYHGCFibzkWFW7m+RvpQh1ayNOboSwt2ncjGoupFnxYNSy 8v4niqgw7iwk0zn1Kmzrepnshyi8Gfs0SnJnuKRDYHN9DwvYIEKj/XSyhN/larEExsSH 2DY997mtqV63VCyK2SfNsNUnxdSK7MsynISR4=
Is it possible to use variables or wildcards in the OnType expression
in an inter-type declaration?
Modifiers Type OnType . Id [ = Expression ] ;
The desire is to add a member to whichever class or classes the aspect
is applied to. All the examples I could find, however, explicitly
name the OnType. Perhaps this can be done in combination with
pertypewithin as in the example below?
public aspect InstanceTracking pertypewithin(org.xyz..*) {
public static final String getWithinTypeName().typeName =
getWithinTypeName();
}
Cheers!
Jared