return new JavaAnnotationImpl(enclosingType, document, unit, annotationTypeDeclaration);
}
else if (declaration instanceof PackageDeclaration)
{
PackageDeclaration packageDeclaration = (PackageDeclaration) declaration;
return new JavaPackageInfoImpl(enclosingType, document, unit, packageDeclaration);
}
else
{
throw new ParserException("Unknown Java source type [" + declaration + "]");
}