public static XClass getMemberType ( ) throws XDocletException { if ( getCurrentField ( ) != null ) { return getCurrentField ( ) . getType ( ) ; } else if ( getCurrentMethod ( ) != null ) { XMethod method = getCurrentMethod ( ) ; if ( MethodTagsHandler . isGetterMethod ( method ) ) { return method . getReturnType ( ) . getType ( ) ; } else if ( MethodTagsHandler . isSetterMethod ( method ) ) { XParameter param = ( XParameter ) method . getParameters ( ) . iterator ( ) . next ( ) ; return param . getType ( ) ; } } return null ; }
Returns the type of the current member which is the type in the case of a field the return type for a getter method or the type of the parameter for a setter method .