Whenever a note is found, a Stem (lilypond-internals) object is created automatically. For whole notes and rests, they are also created but made invisible.
\stemUp,
\stemDown,
\stemNeutral.
This page is for LilyPond-2.4.5 (stable-branch).