Package spoon.support

Annotation Type DerivedProperty


@Retention(RUNTIME) @Target(METHOD) public @interface DerivedProperty
Tells that a metamodel property is derived, ie computed from the value of another property. For instance CtType.getFields() is derived from CtType.getTypeMembers() It can be put on getter and setters. Contracts: - A setter with @DerivedProperty only triggers one single model intercession event, on the element primarily responsible for handling the state from which this dervied property is computed. - A getter with @DerivedProperty is never called in CtScanner and derived classes (clone, replace)