return new JavaEnumImpl(enclosingType, document, unit, enumDeclaration);
}
else if (declaration instanceof AnnotationTypeDeclaration)
{
AnnotationTypeDeclaration annotationTypeDeclaration = (AnnotationTypeDeclaration) declaration;
return new JavaAnnotationImpl(enclosingType, document, unit, annotationTypeDeclaration);
}
else if (declaration instanceof PackageDeclaration)
{
PackageDeclaration packageDeclaration = (PackageDeclaration) declaration;
return new JavaPackageInfoImpl(enclosingType, document, unit, packageDeclaration);