|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=METHOD) @Retention(value=SOURCE) public @interface Const
This annotation indicates that invocation of annotated method doesn't change
observable (by rules) object model state. E.g. invocation of the method can
result in lazy loading of parts of the model, but this state change is not
observable by model clients (i.e. rules).
This annotation is intended to be used in Java 5+ by rules pre-compilers.
Rules pre-compilers can perform execution optimizations such as
chaining of conditions on methods with this annotation.
For some cases, e.g. plain field getters, this annotation can be injected
into sources by automated code analysis tools.
Optional cost attribute indicates relative cost of invocation of
annotated method.
| Optional Element Summary | |
|---|---|
double |
cost
Cost of method invocation. |
public abstract double cost
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||