Package org.eclipse.xtext.xbase.jvmmodel
Class JvmAnnotationReferenceBuilder
- java.lang.Object
-
- org.eclipse.xtext.xbase.jvmmodel.JvmAnnotationReferenceBuilder
-
public class JvmAnnotationReferenceBuilder extends java.lang.Object- Since:
- 2.7
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJvmAnnotationReferenceBuilder.Factory
-
Constructor Summary
Constructors Constructor Description JvmAnnotationReferenceBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.xtext.common.types.JvmAnnotationReferenceannotationRef(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.JvmAnnotationReferenceannotationRef(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.
-
-
-
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,
nullif sourceElement or annotationType arenull.
-
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,
nullif annotationType arenull.
-
-