Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] set pointcut on a field, and all its fields

I guess I need make a pointcut at the constructor of Spatial and store the
localTranslation along with the Spatial in a HashTable so I can identify
the Vector3fs when they are set. If it is in the table I know it belongs
to a Spatial and I can also get the Spatial it belongs to.

Or are there better ways? Any suggestions?


>> it's just that sometimes the localTranslations fields are changed, like
>> this
>> f.ex: localTranslation.x = 0.5;
>
> This could be tricky.  Do you want all sets of Vector3f.x to be
> advised or only the ones that are contained in a localTranslation
> field of type Spatial?
>
> If the former, then what Andy says should work.  If the latter, then
> you are unfortunately S.O.L.
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>




Back to the top