use of org.eclipse.xtext.common.types.JvmConstructor in project xtext-eclipse by eclipse.
the class AbstractTypeProviderTest method test_nestedInterface_Outer_Inner_02.
@Test
public void test_nestedInterface_Outer_Inner_02() {
String typeName = NestedInterfaces.class.getName() + "$Outer$Inner";
JvmGenericType type = (JvmGenericType) getTypeProvider().findTypeByName(typeName);
List<JvmConstructor> constructors = Lists.newArrayList(type.getDeclaredConstructors());
assertEquals(0, constructors.size());
assertEquals(JvmVisibility.PUBLIC, type.getVisibility());
assertTrue(type.isStatic());
assertTrue(type.isAbstract());
}
use of org.eclipse.xtext.common.types.JvmConstructor in project xtext-eclipse by eclipse.
the class JdtBasedTypeFactory method createConstructor.
/**
* @since 2.4
*/
protected JvmConstructor createConstructor(StringBuilder qualifiedName, String handleIdentifier, String[] path, IMethodBinding method) {
JvmConstructor result = TypesFactory.eINSTANCE.createJvmConstructor();
enhanceGenericDeclaration(result, method.getTypeParameters());
enhanceExecutable(qualifiedName, handleIdentifier, path, result, method);
createAnnotationValues(method, result);
return result;
}
Aggregations