Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] Can I "generate" with aspectJ

Title: Can I "generate" with aspectJ

I would like to generate some methods inside java class. For example:
SRC:
public class info {
        public String firstName;
}

After weaving:
public class info {
        private String firstName;

        public String getFirstName() {
        }

        public void setFirstName(String pName) {
                firstName=pName;
        }
}

Is something like this feasible with AspectJ?

TNX

Pavel Tavoda


Back to the top