org.nutz.el.parse.CharQueue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutz Show documentation
Show all versions of nutz Show documentation
Nutz, which is a collections of lightweight frameworks, each of them can be used independently
package org.nutz.el.parse;
/**
* 字符队列, 主要是为了解决reader 中使用的 cursor 临时变量的问题.
* @author juqkai([email protected])
*
*/
public interface CharQueue {
/**
* 不删除字符的情况下读取第一个字符
*/
char peek();
/**
* 不删除字符的情况下读取第ofset个字符,
* @param ofset 偏移量
*/
char peek(int ofset);
/**
* 读取字符,并删除字符
*/
char poll();
/**
* 是否为空
*/
boolean isEmpty();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy