OAKLAND -- Andy Pettitte walked out of Yankee Stadium on Sunday expecting that he'd at some point be named an All-Star. As he climbed a mound for his scheduled bullpen session a coast away the next afternoon, he knew for sure.

Pettitte was added to the American League pitching staff for the July 13 All-Star Game at Angel Stadium on Monday, replacing hurler Clay Buchholz, who was placed on the 15-day disabled list by the Red Sox. Pettitte's name was next on the player vote list, automatically bumping him up to the roster.

"It's awesome. I'm excited to go," Pettitte said. "I'm excited to be voted by my peers. I'm glad I don't have to wait until Sunday."

Pettitte is 10-2 with a 2.82 ERA in 16 starts for the Yankees, but he was bypassed in Sunday's selection process for the All-Star Game, something manager Joe Girardi executed by design.

CC Sabathia was named to the All-Star team, but is scheduled to pitch on Sunday against the Mariners in Seattle, which would make him ineligible to pitch in the Midsummer Classic.

Girardi used two of his choices on Sabathia and Alex Rodriguez, planning to replace Sabathia with Pettitte. But this way, he had the move made for him, and it was an easy call given Pettitte's strong first half.

"It's the way he pitched the second half for us last year," Girardi said. "He's just been real consistent in his mechanics. It's not how hard you throw it, it's where you throw it and how you change speeds, and how you locate. He's been outstanding this year."

Pettitte is on an All-Star team for the third time, having represented the Yankees in 1996 and 2001. He said that his most enduring previous memory of an All-Star Game is warming up in the bullpen and watching Cal Ripken Jr.'s '01 home run sail across the outfield.

"It's been so long. It's been nine years since I've been there," Pettitte said. "It's definitely exciting for me, for sure. ... As the career is winding down here, it makes it more special."

The 38-year-old Pettitte said that his year has not changed his thought process about continuing to pitch, and while he has not talked about 2011, Pettitte did mention Monday that he does not see himself pitching as many as three more seasons.

Pettitte said that having his family on the field with him in Anaheim will be a major bonus.

"I'm just happy that my kids will be there," Pettitte said. "Josh was 6 the last time, and he was out on the field with me and able to be in the clubhouse and meet some of the guys. Jared (now 11) was too young and obviously Luke (now 4) wasn't around. It'll be special for them. I know that they're extremely fired up about it."

Pettitte becomes the seventh Yankee player on the roster, joining starters Derek Jeter and Robinson Cano, as well as reserve Alex Rodriguez and pitchers Phil Hughes, Sabathia and Mariano Rivera. Yet another Yankee, Nick Swisher, is campaigning to be the AL's 34th man in the Final Vote.

"I'm definitely excited," Pettitte said. "It's going to make it great to have the guys there. Hopefully Swish will win the [Final] Vote and add another one."