if (value != null) { if (value instanceof String) { JvmStringAnnotationValue annotationValue = typesFactory.createJvmStringAnnotationValue(); annotationValue.getValues().add((String) value); result.getExplicitValues().add(annotationValue);
JvmStringAnnotationValue annotationValue = typesFactory.createJvmStringAnnotationValue(); for (String value : values) { annotationValue.getValues().add(value);
JvmAnnotationType generatedAnnotationType = (JvmAnnotationType) generatedJvmType; JvmAnnotationReference annotationRef = annotationRefBuilder.annotationRef(Generated.class); JvmStringAnnotationValue annotationValue = typesFactory.createJvmStringAnnotationValue(); annotationValue.getValues().add(generator.getClass().getName()); annotationRef.getExplicitValues().add(annotationValue); annotationValue = typesFactory.createJvmStringAnnotationValue(); annotationValue.setOperation(getOperation(generatedAnnotationType, "date")); annotationValue.getValues().add(date); annotationValue = typesFactory.createJvmStringAnnotationValue(); annotationValue.setOperation(getOperation(generatedAnnotationType, "comments")); annotationValue.getValues().add(transformedComment);
.createJvmStringAnnotationValue(); annotationValue.getValues().add(inlineExpression); annotationValue.setOperation(annotationInfo.valueOperation);
if (Objects.equal(_identifier, _name)) { _matched_1=true; _switchResult_1 = TypesFactory.eINSTANCE.createJvmStringAnnotationValue();
protected EStructuralFeature.Setting createAnnotationValue(Class<?> type) { if (String.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmStringAnnotationValue().getValues(); } else if (Class.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmTypeAnnotationValue().getValues(); } else if (boolean.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmBooleanAnnotationValue().getValues(); } else if (int.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmIntAnnotationValue().getValues(); } else if (type.isAnnotation()) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmAnnotationAnnotationValue().getValues(); } else if (type.isEnum()) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmEnumAnnotationValue().getValues(); } else if (long.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmLongAnnotationValue().getValues(); } else if (short.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmShortAnnotationValue().getValues(); } else if (float.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmFloatAnnotationValue().getValues(); } else if (double.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmDoubleAnnotationValue().getValues(); } else if (char.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmCharAnnotationValue().getValues(); } else if (byte.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmByteAnnotationValue().getValues(); } else throw new IllegalArgumentException("Unexpected type: " + type.getCanonicalName()); }
protected EStructuralFeature.Setting createAnnotationValue(Class<?> type) { if (String.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmStringAnnotationValue().getValues(); } else if (Class.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmTypeAnnotationValue().getValues(); } else if (boolean.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmBooleanAnnotationValue().getValues(); } else if (int.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmIntAnnotationValue().getValues(); } else if (type.isAnnotation()) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmAnnotationAnnotationValue().getValues(); } else if (type.isEnum()) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmEnumAnnotationValue().getValues(); } else if (long.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmLongAnnotationValue().getValues(); } else if (short.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmShortAnnotationValue().getValues(); } else if (float.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmFloatAnnotationValue().getValues(); } else if (double.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmDoubleAnnotationValue().getValues(); } else if (char.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmCharAnnotationValue().getValues(); } else if (byte.class == type) { return (EStructuralFeature.Setting)TypesFactory.eINSTANCE.createJvmByteAnnotationValue().getValues(); } else throw new IllegalArgumentException("Unexpected type: " + type.getCanonicalName()); }
JvmStringAnnotationValue result = TypesFactory.eINSTANCE.createJvmStringAnnotationValue(); ((InternalEList<String>) result.getValues()).addUnique((String) value); return result;