ceylon.language.meta.sequencedAnnotations.ceylon Maven / Gradle / Ivy
import ceylon.language.meta.model { Class }
// TODO Do we really need this? Isn't annotations sufficient?
"The values of given sequenced annotation type on the given program element,
or empty if the program element was not annotated with that annotation type.
For example:
// Does the sum declaration have any ThrownException annotations?
value throwsSomething = sequencedAnnotation(`ThrownException`, `function sum`) nonempty;
The annotations may be returned in any order.
"
shared Value[] sequencedAnnotations(
Class> annotationType,
ProgramElement programElement)
given Value satisfies SequencedAnnotation
given ProgramElement satisfies Annotated {
return annotations(annotationType, programElement);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy