Item newMethodItem ( final String owner , final String name , final String desc , final boolean itf ) { int type = itf ? IMETH : METH ; key3 . set ( type , owner , name , desc ) ; Item result = get ( key3 ) ; if ( result == null ) { put122 ( type , newClass ( owner ) , newNameType ( name , desc ) ) ; result = new Item ( index ++ , key3 ) ; put ( result ) ; } return result ; }
Adds a method reference to the constant pool of the class being build . Does nothing if the constant pool already contains a similar item .