2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 /* The following code was generated by JFlex 1.4 on 3/14/05 5:43 PM */
19 /* It's an automatically generated code. Do not modify it. */
20 package com
.intellij
.lexer
;
22 public class _XmlLexer
extends FlexAdapter
{
23 private int myState
= __XmlLexer
.YYINITIAL
;
25 public _XmlLexer(final __XmlLexer flexLexer
) {
26 this(flexLexer
, false);
29 public _XmlLexer(final __XmlLexer flexLexer
, final boolean conditionalCommentsSupport
) {
31 flexLexer
.setConditionalCommentsSupport(conditionalCommentsSupport
);
34 private void packState() {
35 final __XmlLexer flex
= (__XmlLexer
)getFlex();
36 myState
= ((flex
.yyprevstate() & 15) << 4) | (flex
.yystate() & 15);
39 private void handleState(final int initialState
) {
40 final __XmlLexer flex
= (__XmlLexer
)getFlex();
41 flex
.yybegin(initialState
& 15);
42 flex
.pushState((initialState
>> 4) & 15);
46 public void start(final CharSequence buffer
, final int startOffset
, final int endOffset
, final int initialState
) {
47 super.start(buffer
, startOffset
, endOffset
, initialState
);
48 handleState(initialState
);
51 public int getState() {
55 public void advance() {