All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ceylon.language.meta.annotations.ceylon Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
import ceylon.language.meta.model { Class }

/*
 * Do we really need to enforce that you can't 
 * ask for the annotations of a certain type for a
 * certain program element unless the annotation 
 * type can appear at that program element? Why not
 * just return no annotations?
 * 
 */

"The annotations of the [[given type|annotationType]] 
 applied to the [[given program element|programElement]]. 
 For example:
 
     // Does the process declaration have any annotations
     // of type SharedAnnotation?
     value isShared = annotations(`SharedAnnotation`, `value process`) exists;
 
 The annotations may be returned in any order."
shared native Values annotations(
    Class> annotationType,
    ProgramElement programElement)
        given Value satisfies ConstrainedAnnotation
        //given Values of  | 
        given ProgramElement satisfies Annotated;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy