hint_col.txt 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. (import [java.lang.annotation Retention RetentionPolicy Target ElementType]
  2. [javax.xml.ws WebServiceRef WebServiceRefs])
  3. (definterface Foo (foo []))
  4. ;; annotation on type
  5. (deftype ^{Deprecated true
  6. Retention RetentionPolicy/RUNTIME
  7. javax.annotation.processing.SupportedOptions ["foo" "bar" "baz"]
  8. javax.xml.ws.soap.Addressing {:enabled false :required true}
  9. WebServiceRefs [(WebServiceRef {:name "fred" :type String})
  10. (WebServiceRef {:name "ethel" :mappedName "lucy"})]}
  11. Bar [^int a
  12. ;; on field
  13. ^{:tag int
  14. Deprecated true
  15. Retention RetentionPolicy/RUNTIME
  16. javax.annotation.processing.SupportedOptions ["foo" "bar" "baz"]
  17. javax.xml.ws.soap.Addressing {:enabled false :required true}
  18. WebServiceRefs [(WebServiceRef {:name "fred" :type String})
  19. (WebServiceRef {:name "ethel" :mappedName "lucy"})]}
  20. b]
  21. ;; on method
  22. Foo (^{Deprecated true
  23. Retention RetentionPolicy/RUNTIME
  24. javax.annotation.processing.SupportedOptions ["foo" "bar" "baz"]
  25. javax.xml.ws.soap.Addressing {:enabled false :required true}
  26. WebServiceRefs [(WebServiceRef {:name "fred" :type String})
  27. (WebServiceRef {:name "ethel" :mappedName "lucy"})]}
  28. foo [this] 42))
  29. (seq (.getAnnotations Bar))
  30. (seq (.getAnnotations (.getField Bar "b")))
  31. (seq (.getAnnotations (.getMethod Bar "foo" nil)))