Class Lexer
java.lang.Object
com.easydesk.lucene.analyzer.latex.Lexer
- Direct Known Subclasses:
LaTeXLexer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intgetKeyword(int position, boolean strict) Get the keyword at the current positionabstract intscan()Get the token's identifierabstract voidsetDocument(Document doc) Set the document in the lexerabstract voidsetRange(int start, int end) Set the range to parseabstract intyychar()Get the actual position in the parsed readerabstract intyylength()Get the length of the matched token
-
Field Details
-
start
public int startDOCUMENT ME!
-
-
Constructor Details
-
Lexer
public Lexer()
-
-
Method Details
-
setRange
public abstract void setRange(int start, int end) Set the range to parse- Parameters:
start- the startend- the end
-
yychar
public abstract int yychar()Get the actual position in the parsed reader- Returns:
- the position
-
yylength
public abstract int yylength()Get the length of the matched token- Returns:
- the length
-
scan
Get the token's identifier- Returns:
- the id
- Throws:
IOException
-
getKeyword
public abstract int getKeyword(int position, boolean strict) Get the keyword at the current position- Parameters:
position- where to searchstrict- if true then the keyword is searched just after position- Returns:
- the keyword id
-
setDocument
Set the document in the lexer- Parameters:
doc- the document
-