Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Is it possible to declare new constructors with @DeclareParens/@DeclareMixins?

Yes, you can. For example, this is how you will introduce a no-arg constructor to the Account type.

public Account.new() {
   ...
}

-Ramnivas

2009/9/4 João Gonçalves <jocolimonada@xxxxxxxxx>
In traditional syntax, it is possible to declare members (fields, methods, and constructors) via inter-type declarations.

With @DeclareParents/@DeclareMixins it is easy to emulate fields (with getter and setter methods).

Is it also possible to declare new constructors for a type?

Thanks

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top