public List < ContentUriPlaceHolder > extractFromPath ( String input ) { final List < ContentUriPlaceHolder > result = new ArrayList <> ( ) ; final One < Boolean > valid = new One <> ( ) ; valid . value0 = false ; analyzePathInternal ( input , 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 from path .