getElementType

Returns the element type. For int a; this is int. For int a,b,c,d; this is also int. For int a,b[],c; this is also int. Note: no mention of b being an array. For int a,b;, then doing setType(String) on b, then calling getElementType(). This is an assertion error. It is also a situation that you don't really want.