A characterization of the local structure of static stars