类 BaseMaybeFlagState
java.lang.Object
cool.document.qtmd.BaseState
cool.document.qtmd.BaseMiddleState
cool.document.qtmd.BaseMaybeFlagState
- 所有已实现的接口:
MaybeFlagState,MiddleState,State
- 直接已知子类:
BgState,BState,IState,MaybeColorState,MaybeLinkState,MaybeUlState
-
字段概要
字段从类继承的字段 cool.document.qtmd.BaseState
buffer, stateAfterFinish -
构造器概要
构造器 -
方法概要
从类继承的方法 cool.document.qtmd.BaseState
buffer, stateAfterFinish从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cool.document.qtmd.MaybeFlagState
isFinishChar, metNewline, metOtherChar, next从接口继承的方法 cool.document.qtmd.MiddleState
flushBuffer, metActivateChar, willConsumeFinishChar从接口继承的方法 cool.document.qtmd.State
addChar, addChars, buffer, clearBuffer, isActivateChar, isNewline, metChars, stateAfterFinish
-
字段详细资料
-
activateChars
-
isReady
protected boolean isReady
-
-
构造器详细资料
-
BaseMaybeFlagState
-
-
方法详细资料
-
metChar
从接口复制的说明:State遇到单个字符,返回结果状态。 默认处理: 1,若是激活字符(State.isActivateChar(char)),则激活(State.metActivateChar(char))。 2,若是换行符(State.isNewline(char)),则换行(State.metNewline(char))。 3,若是结束字符(State.isFinishChar(char)),则结束(State.finish(char))。 4,否则视为其他字符来处理(State.metOtherChar(char))。 -
finish
从接口复制的说明:MiddleState中间状态的finish其实是回滚:把buffer刷到前置状态的buffer里,然后由前置状态处理结束符。- 指定者:
finish在接口中MiddleState- 指定者:
finish在接口中State- 返回:
-
end
public void end()从接口复制的说明:State终结。通常是不再有更多字符需要处理时,本状态的退出/结束/终结机制。 默认先结束前置状态,再刷缓冲区字符(State.flushBuffer())。 -
checkIsReady
protected void checkIsReady() -
isReady
public boolean isReady()- 指定者:
isReady在接口中MaybeFlagState
-
activateChars
- 指定者:
activateChars在接口中MaybeFlagState
-