Class XAnnotationUtil


  • public class XAnnotationUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      XAnnotationUtil()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<org.eclipse.xtext.common.types.JvmAnnotationReference> findAnnotations​(java.util.Set<java.lang.String> qualifiedNames, org.eclipse.xtext.common.types.JvmAnnotationTarget annotationTarget)  
      org.eclipse.xtext.common.types.JvmOperation findSingleValueAttribute​(org.eclipse.xtext.common.types.JvmAnnotationType type)  
      XExpression findValue​(XAnnotation annotation, org.eclipse.xtext.common.types.JvmOperation jvmOperation)  
      java.util.Set<java.lang.annotation.ElementType> getAnnotationTargets​(org.eclipse.xtext.common.types.JvmAnnotationType annotation)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XAnnotationUtil

        public XAnnotationUtil()
    • Method Detail

      • findSingleValueAttribute

        public org.eclipse.xtext.common.types.JvmOperation findSingleValueAttribute​(org.eclipse.xtext.common.types.JvmAnnotationType type)
      • findValue

        public XExpression findValue​(XAnnotation annotation,
                                     org.eclipse.xtext.common.types.JvmOperation jvmOperation)
      • getAnnotationTargets

        public java.util.Set<java.lang.annotation.ElementType> getAnnotationTargets​(org.eclipse.xtext.common.types.JvmAnnotationType annotation)
      • findAnnotations

        public java.util.List<org.eclipse.xtext.common.types.JvmAnnotationReference> findAnnotations​(java.util.Set<java.lang.String> qualifiedNames,
                                                                                                     org.eclipse.xtext.common.types.JvmAnnotationTarget annotationTarget)
        Parameters:
        qualifiedNames - The annotations' qualified names to search for.
        annotationTarget - The element the annotations are search on.
        Returns:
        The annotations that are applied on the annotationTarget and their qualified names appear in the qualifiedNames set. The annotations are returned in the order of their appearance.
        Since:
        2.15