1 /*2 * Copyright 2004-2006 H2 Group. Licensed under the H2 License, Version 1.0 (http://h2database.com/html/license.html).3 * Initial Developer: H2 Group4 */5 package org.h2.bnf;6 7 import java.util.HashMap ;8 9 public interface Rule {10 String name();11 String random(Bnf config, int level);12 Rule last();13 void setLinks(HashMap ruleMap);14 void addNextTokenList(String query, Sentence sentence);15 16 /**17 * 18 * @return null if not a match or a partial match, query.substring... if a full match19 */20 String matchRemove(String query, Sentence sentence);21 22 }23