groovy / 4.0 / groovy / transform / pure.html

[Java] Annotation Type Pure

  • groovy.transform.Pure
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface Pure

Mark the return value of "pure" method only comes from expressions involving constants or other pure methods

Since:
4.0.0

Inherited Methods Summary

Inherited Methods
Methods inherited from class Name
class Object wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll

© 2003-2022 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/4.0.0/html/gapi/groovy/transform/Pure.html