public String getClassName ( ) { if ( _fieldDecl == null || _fieldDecl . getType ( ) == null ) return "" ; // // This is lazily... but much easier than navigating the APT type system and just // as effective ;) String typeName = _fieldDecl . getType ( ) . toString ( ) ; int formalIndex = typeName . indexOf ( ' ' ) ; if ( formalIndex > 0 ) return typeName . substring ( 0 , formalIndex ) ; return typeName ; }
Returns the class name of the field ( does not include any formal type parameters