Lines Matching refs:state
32 * and recover from errors etc... As a separate state object, it can be
35 * These fields are publically visible but the actual state pointer per
83 // LEXER FIELDS (must be in same state object to avoid casting
122 public RecognizerSharedState(RecognizerSharedState state) {
123 if ( this.following.length < state.following.length ) {
124 this.following = new BitSet[state.following.length];
126 System.arraycopy(state.following, 0, this.following, 0, state.following.length);
127 this._fsp = state._fsp;
128 this.errorRecovery = state.errorRecovery;
129 this.lastErrorIndex = state.lastErrorIndex;
130 this.failed = state.failed;
131 this.syntaxErrors = state.syntaxErrors;
132 this.backtracking = state.backtracking;
133 if ( state.ruleMemo!=null ) {
134 this.ruleMemo = new Map[state.ruleMemo.length];
135 System.arraycopy(state.ruleMemo, 0, this.ruleMemo, 0, state.ruleMemo.length);
137 this.token = state.token;
138 this.tokenStartCharIndex = state.tokenStartCharIndex;
139 this.tokenStartCharPositionInLine = state.tokenStartCharPositionInLine;
140 this.channel = state.channel;
141 this.type = state.type;
142 this.text = state.text;