protected JvmTypeReference createArrayTypeReference(Type componentType) { JvmTypeReference componentTypeReference = createTypeReference(componentType); JvmGenericArrayTypeReference result = TypesFactory.eINSTANCE.createJvmGenericArrayTypeReference(); result.setComponentType(componentTypeReference); return result; }
protected JvmTypeReference createArrayTypeReference(Type componentType) { JvmTypeReference componentTypeReference = createTypeReference(componentType); JvmGenericArrayTypeReference result = TypesFactory.eINSTANCE.createJvmGenericArrayTypeReference(); result.setComponentType(componentTypeReference); return result; }
protected JvmTypeReference createLocalArrayTypeReference(Type componentType, JvmTypeParameterDeclarator container, GenericDeclaration member) { JvmTypeReference componentTypeReference = createLocalTypeReference(componentType, container, member); JvmGenericArrayTypeReference result = TypesFactory.eINSTANCE.createJvmGenericArrayTypeReference(); result.setComponentType(componentTypeReference); return result; }
public JvmGenericArrayTypeReference createArrayType(JvmTypeReference componentType) { JvmGenericArrayTypeReference result = factory.createJvmGenericArrayTypeReference(); result.setComponentType(EcoreUtil2.cloneIfContained(componentType)); return result; }
public JvmGenericArrayTypeReference createArrayType(JvmTypeReference componentType) { JvmGenericArrayTypeReference result = factory.createJvmGenericArrayTypeReference(); result.setComponentType(EcoreUtil2.cloneIfContained(componentType)); return result; }
protected JvmTypeReference createLocalArrayTypeReference(Type componentType, JvmTypeParameterDeclarator container, GenericDeclaration member) { JvmTypeReference componentTypeReference = createLocalTypeReference(componentType, container, member); JvmGenericArrayTypeReference result = TypesFactory.eINSTANCE.createJvmGenericArrayTypeReference(); result.setComponentType(componentTypeReference); return result; }
@Override public JvmTypeReference doVisitGenericArrayTypeReference(JvmGenericArrayTypeReference reference, Boolean replaceWildcards) { JvmTypeReference copiedComponent = visit(reference.getComponentType(), replaceWildcards); JvmGenericArrayTypeReference result = typesFactory.createJvmGenericArrayTypeReference(); result.setComponentType(copiedComponent); return result; } @Override
@Override public JvmTypeReference toTypeReference() { JvmGenericArrayTypeReference result = getTypesFactory().createJvmGenericArrayTypeReference(); result.setComponentType(component.toTypeReference()); return result; }
@Override public JvmTypeReference doVisitGenericArrayTypeReference(JvmGenericArrayTypeReference reference, Resource resource) { JvmTypeReference componentType = reference.getComponentType(); JvmTypeReference rawComponentType = visit(componentType, resource); if (componentType != rawComponentType) { JvmGenericArrayTypeReference result = factory.createJvmGenericArrayTypeReference(); result.setComponentType(rawComponentType); return result; } return reference; }
@Override public JvmTypeReference toJavaCompliantTypeReference(IVisibilityHelper visibilityHelper) { JvmGenericArrayTypeReference result = getTypesFactory().createJvmGenericArrayTypeReference(); result.setComponentType(component.toJavaCompliantTypeReference(visibilityHelper)); return result; }
@Override public JvmTypeReference doVisitGenericArrayTypeReference(JvmGenericArrayTypeReference reference, Resource resource) { JvmTypeReference componentType = reference.getComponentType(); JvmTypeReference rawComponentType = visit(componentType, resource); if (componentType != rawComponentType) { JvmGenericArrayTypeReference result = factory.createJvmGenericArrayTypeReference(); result.setComponentType(rawComponentType); return result; } return reference; }
@Override public JvmTypeReference doVisitGenericArrayTypeReference(JvmGenericArrayTypeReference reference, Pair<Resource, Set<JvmType>> context) { JvmTypeReference componentType = reference.getComponentType(); JvmTypeReference rawComponentType = visit(componentType, context); if (componentType != rawComponentType) { JvmGenericArrayTypeReference result = factory.createJvmGenericArrayTypeReference(); result.setComponentType(rawComponentType); return result; } return reference; }
protected JvmTypeReference newRef(JvmType type) { if (type instanceof JvmArrayType) { JvmTypeReference componentType = newRef(((JvmArrayType) type).getComponentType()); JvmGenericArrayTypeReference reference = factory.createJvmGenericArrayTypeReference(); reference.setComponentType(componentType); return reference; } else { JvmParameterizedTypeReference reference = factory.createJvmParameterizedTypeReference(); reference.setType(type); return reference; } }
protected JvmTypeReference toTypeReference(final JvmType type, final int arrayDimensions) { if ((type == null)) { return null; } JvmParameterizedTypeReference _createJvmParameterizedTypeReference = TypesFactory.eINSTANCE.createJvmParameterizedTypeReference(); final Procedure1<JvmParameterizedTypeReference> _function = (JvmParameterizedTypeReference it) -> { it.setType(type); }; JvmTypeReference resultTypeRef = ObjectExtensions.<JvmParameterizedTypeReference>operator_doubleArrow(_createJvmParameterizedTypeReference, _function); ExclusiveRange _doubleDotLessThan = new ExclusiveRange(0, arrayDimensions, true); for (final Integer i : _doubleDotLessThan) { { final JvmGenericArrayTypeReference arrayRef = TypesFactory.eINSTANCE.createJvmGenericArrayTypeReference(); arrayRef.setComponentType(resultTypeRef); resultTypeRef = arrayRef; } } return resultTypeRef; }
result.setComponentType(componentTypeReference); return result;
for (int i = 0; i < arrayCount; i++) { JvmGenericArrayTypeReference array = TypesFactory.eINSTANCE.createJvmGenericArrayTypeReference(); array.setComponentType(result); result = array;