{
return new JavaInterfaceImpl(enclosingType, document, unit, declaration);
}
else
{
return new JavaClassImpl(enclosingType, document, unit, declaration);
}
}
else if (declaration instanceof EnumDeclaration)
{
return new JavaEnumImpl(enclosingType, document, unit, declaration);