01: /*
02: * Sun Public License Notice
03: *
04: * The contents of this file are subject to the Sun Public License
05: * Version 1.0 (the "License"). You may not use this file except in
06: * compliance with the License. A copy of the License is available at
07: * http://www.sun.com/
08: *
09: * The Original Code is NetBeans. The Initial Developer of the Original
10: * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun
11: * Microsystems, Inc. All Rights Reserved.
12: */
13:
14: package org.netbeans.editor;
15:
16: /**
17: * Accept or reject given character. The advance is that accepting can be done
18: * by code so the methods from java.lang.Character can be used and mixed.
19: *
20: * @author Jaroslav Tulach
21: * @version 1.00
22: */
23:
24: public interface Acceptor {
25:
26: /**
27: * Accept or reject character
28: *
29: * @return true to accept the given character or false to not accept it
30: */
31: public boolean accept(char ch);
32:
33: }
|