getVariableDeclarator

Convenience method that directly returns this foreach statement's single variable declarator. Note that any foreach statement's variable declaration expression (as returned by getVariable) always has exactly one variable declarator.

Calling this method on a foreach statement forEachStmt is equivalent to calling forEachStmt.getVariable().getVariable(0).

Return

this foreach statement's single variable declarator.