yybegin(initialState);
}
- // For Demetra compatibility
- public void reset(CharSequence buffer, int initialState){
- zzBuffer = buffer;
- zzBufferArray = null;
- zzCurrentPos = zzMarkedPos = zzStartRead = 0;
- zzPushbackPos = 0;
- zzAtEOF = false;
- zzAtBOL = true;
- zzEndRead = buffer.length();
- yybegin(initialState);
- }
-
/**
* Refills the input buffer.
*
yybegin(initialState);
}
- public void reset(CharSequence buffer, int initialState){
- reset(buffer, 0, buffer.length(), initialState);
- }
-
/**
* Refills the input buffer.
*
*/
package com.intellij.lexer;
-import com.intellij.openapi.application.ApplicationManager;
import com.intellij.psi.tree.IElementType;
import java.io.IOException;
public void start(final CharSequence buffer, int startOffset, int endOffset, final int initialState) {
myText = buffer;
myEnd = endOffset;
- try {
- myFlex.reset(myText, startOffset, endOffset, initialState);
- } catch(AbstractMethodError ame) {
- // Demetra compatibility
- myFlex.reset(myText.subSequence(startOffset, endOffset), initialState);
- }
+ myFlex.reset(myText, startOffset, endOffset, initialState);
myTokenType = null;
}
int getTokenEnd();
IElementType advance() throws IOException;
void reset(CharSequence buf, int start, int end, int initialState);
-
- /**
- * Method left for Demetra compatibility
- */
- @Deprecated
- void reset(CharSequence buf, int initialState);
}
yybegin(initialState);
}
- // For Demetra compatibility
- public void reset(CharSequence buffer, int initialState){
- zzBuffer = buffer;
- zzBufferArray = null;
- zzCurrentPos = zzMarkedPos = zzStartRead = 0;
- zzPushbackPos = 0;
- zzAtEOF = false;
- zzAtBOL = true;
- zzEndRead = buffer.length();
- yybegin(initialState);
- }
-
/**
* Refills the input buffer.
*
yybegin(initialState);
}
- // For Demetra compatibility
- public void reset(CharSequence buffer, int initialState){
- zzBuffer = buffer;
- zzBufferArray = null;
- zzCurrentPos = zzMarkedPos = zzStartRead = 0;
- zzPushbackPos = 0;
- zzAtEOF = false;
- zzAtBOL = true;
- zzEndRead = buffer.length();
- yybegin(initialState);
- }
-
/**
* Refills the input buffer.
*
yybegin(initialState);
}
- public void reset(CharSequence buffer, int initialState){
- reset(buffer, 0, buffer.length(), initialState);
- }
-
/**
* Refills the input buffer.
*
yybegin(initialState);
}
- public void reset(CharSequence buffer, int initialState){
- reset(buffer, 0, buffer.length(), initialState);
- }
-
/**
* Refills the input buffer.
*
yybegin(initialState);
}
- // For Demetra compatibility
- public void reset(CharSequence buffer, int initialState){
- zzBuffer = buffer;
- zzBufferArray = null;
- zzCurrentPos = zzMarkedPos = zzStartRead = 0;
- zzPushbackPos = 0;
- zzAtEOF = false;
- zzAtBOL = true;
- zzEndRead = buffer.length();
- yybegin(initialState);
- }
-
/**
* Refills the input buffer.
*
yybegin(initialState);
}
- // For Demetra compatibility
- public void reset(CharSequence buffer, int initialState){
- zzBuffer = buffer;
- zzBufferArray = null;
- zzCurrentPos = zzMarkedPos = zzStartRead = 0;
- zzPushbackPos = 0;
- zzAtEOF = false;
- zzAtBOL = true;
- zzEndRead = buffer.length();
- yybegin(initialState);
- }
-
/**
* Refills the input buffer.
*
yybegin(initialState);
}
- // For Demetra compatibility
- public void reset(CharSequence buffer, int initialState){
- clearStacks();
- braceCount.clear();
- afterComment = YYINITIAL;
-
- zzBuffer = buffer;
- zzBufferArray = null;
- zzCurrentPos = zzMarkedPos = zzStartRead = 0;
- zzPushbackPos = 0;
- zzAtEOF = false;
- zzAtBOL = true;
- zzEndRead = buffer.length();
- java.util.Arrays.fill(zzFin, false);
-
- yybegin(initialState);
- }
-
/**
* Refills the input buffer.
*
yybegin(initialState);
}
- // For Demetra compatibility
- public void reset(CharSequence buffer, int initialState){
- clearStacks();
- braceCount.clear();
- afterComment = YYINITIAL;
-
- zzBuffer = buffer;
- zzBufferArray = null;
- zzCurrentPos = zzMarkedPos = zzStartRead = 0;
- zzPushbackPos = 0;
- zzAtEOF = false;
- zzAtBOL = true;
- zzEndRead = buffer.length();
- java.util.Arrays.fill(zzFin, false);
-
- yybegin(initialState);
- }
-
/**
* Refills the input buffer.
*
yybegin(initialState);
}
- public void reset(CharSequence buffer, int initialState){
- reset(buffer, 0, buffer.length(), initialState);
- }
-
/**
* Refills the input buffer.
*
yybegin(initialState);
}
- // For Demetra compatibility
- public void reset(CharSequence buffer, int initialState){
- reset(buffer, 0, buffer.length(), initialState);
- }
-
/**
* Refills the input buffer.
*
yybegin(initialState);
}
- // For Demetra compatibility
- public void reset(CharSequence buffer, int initialState){
- zzBuffer = buffer;
- zzBufferArray = null;
- zzCurrentPos = zzMarkedPos = zzStartRead = 0;
- zzPushbackPos = 0;
- zzAtEOF = false;
- zzAtBOL = true;
- zzEndRead = buffer.length();
- yybegin(initialState);
- }
-
/**
* Refills the input buffer.
*
yybegin(initialState);
}
- // For Demetra compatibility
- public void reset(CharSequence buffer, int initialState){
- zzBuffer = buffer;
- zzBufferArray = null;
- zzCurrentPos = zzMarkedPos = zzStartRead = 0;
- zzPushbackPos = 0;
- zzAtEOF = false;
- zzAtBOL = true;
- zzEndRead = buffer.length();
- yybegin(initialState);
- }
-
/**
* Refills the input buffer.
*
yybegin(initialState);
}
- // For Demetra compatibility
- public void reset(CharSequence buffer, int initialState){
- zzBuffer = buffer;
- zzBufferArray = null;
- zzCurrentPos = zzMarkedPos = zzStartRead = 0;
- zzPushbackPos = 0;
- zzAtEOF = false;
- zzAtBOL = true;
- zzEndRead = buffer.length();
- yybegin(initialState);
- }
-
/**
* Refills the input buffer.
*
yybegin(initialState);
}
- // For Demetra compatibility
- public void reset(CharSequence buffer, int initialState){
- zzBuffer = buffer;
- zzBufferArray = null;
- zzCurrentPos = zzMarkedPos = zzStartRead = 0;
- zzPushbackPos = 0;
- zzAtEOF = false;
- zzAtBOL = true;
- zzEndRead = buffer.length();
- yybegin(initialState);
- }
-
/**
* Refills the input buffer.
*