📄 legacyevent.java
字号:
package org.kxml.parser;
/** Event class for processing instructions, doctype declarations and comments */
public class LegacyEvent extends ParseEvent {
int type;
String text;
/** creates a new LegacyEvent with the given type and string content */
public LegacyEvent (int type, String text) {
this.type = type;
this.text = text;
}
/** returns the type of the sgml-legacy event,
PROCESSING_INSTRUCTION, ENTITY_DECLARATION, or COMMENT */
public int getType () {
return type;
}
/** returns always false. */
public boolean endCheck (StartTag start) {
return false;
}
/** returns the string content of the legacy event */
public String getText () {
return text;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -