@Test public void testRecognize() { LinkedList<Candidate> list = new LinkedList<Candidate>(); String value = "prefix http: recognizer.recognize(value, list); Assert.assertEquals(1, list.size()); AbstractRecognizerTest.checkCandidate(list.get(0), "web:http: }
@Override public void recognize(String content, List<Candidate> candidates) { Matcher matcher = WEB_PATTERN.matcher(content); while(matcher.find()) { candidates.add(new Candidate(matcher.start(), matcher.end(), "web:" + matcher.group())); } }
WebLinkRecognizer implements Recognizer { @Override public void recognize(String content, List<Candidate> candidates) { Matcher matcher = WEB_PATTERN.matcher(content); while(matcher.find()) { candidates.add(new Candidate(matcher.start(), matcher.end(), "web:" + matcher.group())); } } }
WebLinkRecognizer implements Recognizer { @Override public void recognize(String content, List<Candidate> candidates) { Matcher matcher = WEB_PATTERN.matcher(content); while(matcher.find()) { candidates.add(new Candidate(matcher.start(), matcher.end(), "web:" + matcher.group())); } }  }
WebLinkRecognizer implements Recognizer { @Override public void recognize(String content, List<Candidate> candidates) { Matcher matcher = WEB_PATTERN.matcher(content); while(matcher.find()) { candidates.add(new Candidate(matcher.start(), matcher.end(), "web:" + matcher.group())); } }  @Override void recognize(String content, List<Candidate> candidates); @Override boolean navigate(Project project, String hyperlink); }
WebLinkRecognizer implements Recognizer { @Override public void recognize(String content, List<Candidate> candidates) { Matcher matcher = WEB_PATTERN.matcher(content); while(matcher.find()) { candidates.add(new Candidate(matcher.start(), matcher.end(), "web:" + matcher.group())); } }  @Override void recognize(String content, List<Candidate> candidates); @Override boolean navigate(Project project, String hyperlink);  }