private static boolean serialClassInclude ( Utils utils , TypeElement te ) { if ( utils . isEnum ( te ) ) { return false ; } if ( utils . isSerializable ( te ) ) { if ( ! utils . getSerialTrees ( te ) . isEmpty ( ) ) { return serialDocInclude ( utils , te ) ; } else if ( utils . isPublic ( te ) || utils . isProtected ( te ) ) { return true ; } else { return false ; } } return false ; }
Returns true if the given TypeElement should be included in the serialized form .