Class JvmAnnotationReferenceBuilder


  • public class JvmAnnotationReferenceBuilder
    extends java.lang.Object
    Since:
    2.7
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.xtext.common.types.JvmAnnotationReference annotationRef​(java.lang.Class<?> annotationType, java.lang.String... values)
      Creates and returns an annotation reference of the given annotation type's name and the given value.
      org.eclipse.xtext.common.types.JvmAnnotationReference annotationRef​(java.lang.String annotationTypeName, java.lang.String... values)
      Creates and returns an annotation reference of the given annotation type's name and the given value.
      • Methods inherited from class java.lang.Object

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

      • JvmAnnotationReferenceBuilder

        public JvmAnnotationReferenceBuilder()
    • Method Detail

      • annotationRef

        public org.eclipse.xtext.common.types.JvmAnnotationReference annotationRef​(java.lang.Class<?> annotationType,
                                                                                   java.lang.String... values)
        Creates and returns an annotation reference of the given annotation type's name and the given value.
        Parameters:
        annotationType - the type of the created annotation reference.
        values - the string values of the annotation reference.
        Returns:
        a result representing an annotation reference to the given annotation type, null if sourceElement or annotationType are null.
      • annotationRef

        public org.eclipse.xtext.common.types.JvmAnnotationReference annotationRef​(java.lang.String annotationTypeName,
                                                                                   java.lang.String... values)
        Creates and returns an annotation reference of the given annotation type's name and the given value.
        Parameters:
        annotationTypeName - the type name of the created annotation.
        values - the string value of the annotation's 'values' property.
        Returns:
        a result representing an annotation reference to the given annotation type, null if annotationType are null.