private boolean isReadObjectOrWriteObjectMethod ( Symbol symbol ) { if ( symbol instanceof DynamicFunctionSymbol ) { DynamicFunctionSymbol dfs = ( DynamicFunctionSymbol ) symbol ; if ( dfs . getDisplayName ( ) . equals ( "readObject" ) ) { IType [ ] argTypes = dfs . getArgTypes ( ) ; return argTypes != null && argTypes . length == 1 && argTypes [ 0 ] . equals ( JavaTypes . getJreType ( java . io . ObjectInputStream . class ) ) && dfs . getReturnType ( ) . equals ( JavaTypes . pVOID ( ) ) ; } else if ( dfs . getDisplayName ( ) . equals ( "writeObject" ) ) { IType [ ] argTypes = dfs . getArgTypes ( ) ; return argTypes != null && argTypes . length == 1 && argTypes [ 0 ] . equals ( JavaTypes . getJreType ( java . io . ObjectOutputStream . class ) ) && dfs . getReturnType ( ) . equals ( JavaTypes . pVOID ( ) ) ; } else { return false ; } } else { return false ; } }
Returns true if that is the case false otherwise