📄 char.java
字号:
package lolo.scans;/** A simple class to scan a single character. * * @author <a href="http://www.inf.uos.de/bernd" target="_blank">Bernd Kühl</a> (<a href="mailto:bernd@informatik.uni-osnabrueck.de">bernd@informatik.uni-osnabrueck.de</a>) */public class Char extends Set { /** Creates an object which accepts any character. */ public Char() { super("", false); } /** Creates an object which scans for the character <tt>ch</tt>. * * @param ch the character of this symbol. */ public Char(char ch) { super(ch+"", true); } /** Returns a string representation of the object. * * @return a string representation of the object. */ public String toString() { return getClass().getName()+"["+(set.length() == 0 ? "ANY" : set)+"]"; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -