private < L extends Collection < ContentUriPlaceHolder > > L extractPlaceHoldersFromURI ( String uri , final L result ) { final One < Boolean > valid = new One <> ( ) ; valid . value0 = false ; analyzeInternal ( uri , new UriBaseListener ( ) { @ Override public void enterBind_parameter ( Bind_parameterContext ctx ) { result . add ( new ContentUriPlaceHolder ( pathSegmentIndex , ctx . bind_parameter_name ( ) . getText ( ) ) ) ; } @ Override public void enterPath_segment ( Path_segmentContext ctx ) { pathSegmentIndex ++ ; } } ) ; return result ; }
Extract place holders from URI .