@Retention(value=RUNTIME) @Target(value=METHOD) public @interface DerivedProperty
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)
Copyright © 2007–2021 Inria. All rights reserved.