private static boolean isConstantExpression(JvmAnnotationReference reference) { for (final JvmAnnotationValue annotationValue: reference.getValues()) { if ("constantExpression".equals(annotationValue.getValueName())) { if (annotationValue instanceof JvmBooleanAnnotationValue) { return ((JvmBooleanAnnotationValue) annotationValue).getValues().get(0).booleanValue(); } else if (annotationValue instanceof JvmCustomAnnotationValue) { final EObject value = ((JvmCustomAnnotationValue) annotationValue).getValues().get(0); if (value instanceof XBooleanLiteral) { return ((XBooleanLiteral) value).isIsTrue(); } } } } return false; }
if (_explicitValues!=null) { final Function1<JvmAnnotationValue, Boolean> _function_1 = (JvmAnnotationValue it) -> { String _valueName = it.getValueName(); return Boolean.valueOf(Objects.equal(_valueName, typeString)); };
List<JvmTypeReference> importedTypes = Lists.newArrayListWithCapacity(2); for(JvmAnnotationValue annotationValue: inlineAnnotation.getValues()) { if ("value".equals(annotationValue.getValueName()) || null == annotationValue.getValueName()) { if (annotationValue instanceof JvmStringAnnotationValue) { formatString = ((JvmStringAnnotationValue)annotationValue).getValues().get(0); } else if ("imported".equals(annotationValue.getValueName())) { if (annotationValue instanceof JvmTypeAnnotationValue) { JvmTypeAnnotationValue typeAnnotationValue = (JvmTypeAnnotationValue) annotationValue;
final List<JvmTypeReference> importedTypes = Lists.newArrayListWithCapacity(2); for (final JvmAnnotationValue annotationValue: inlineAnnotation.getValues()) { final String valueName = annotationValue.getValueName(); if (Strings.isEmpty(valueName)) {
final Function1<JvmAnnotationValue, String> _function_1 = (JvmAnnotationValue it) -> { String _elvis = null; String _valueName = it.getValueName(); if (_valueName != null) { _elvis = _valueName;
if (value instanceof JvmBooleanAnnotationValue && value.getValueName().equals("constantExpression")) { EList<Boolean> values = ((JvmBooleanAnnotationValue )value).getValues(); if (!values.isEmpty()) {