Package jflex.core
Class AbstractLexScan
java.lang.Object
jflex.core.AbstractLexScan
- All Implemented Interfaces:
ILexScan
- Direct Known Subclasses:
LexScan
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean
(package private) int
(package private) final CharClasses
(package private) boolean
(package private) String
(package private) String
(package private) boolean
(package private) boolean
(package private) boolean
(package private) boolean
(package private) String
(package private) boolean
(package private) boolean
(package private) String
(package private) String
(package private) String
(package private) File
(package private) String
(package private) String
(package private) String
(package private) boolean
(package private) String
(package private) boolean
(package private) String
(package private) boolean
(package private) boolean
(package private) boolean
(package private) String
(package private) boolean
(package private) boolean
(package private) LexicalStates
(package private) StringBuilder
(package private) String
(package private) UnicodeProperties
(package private) StringBuilder
(package private) String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactions()
boolean
bolUsed()
int
boolean
boolean
static String
static String
ctorArg
(int i) int
ctorType
(int i) boolean
boolean
boolean
cupDebug()
int
Deprecated.boolean
boolean
eofclose()
eofCode()
eofThrow()
eofVal()
file()
int
getStateNumber
(String name) (package private) void
includeFile
(String filePath) initCode()
(package private) void
boolean
boolean
Deprecated.boolean
isFinal()
boolean
boolean
boolean
isPublic()
protected abstract int
protected abstract int
lexLine()
protected abstract void
protected abstract String
lexText()
lexThrow()
boolean
(package private) String
(package private) File
popFile()
(package private) void
void
boolean
(package private) java_cup.runtime.Symbol
symbol
(int type) (package private) java_cup.runtime.Symbol
(package private) java_cup.runtime.Symbol
symbol_countUpdate
(int type, Object value) Updates line and column count to the beginning of the first non whitespace character in yytext, but leaves yyline()+lexColumn() untouched.userCode()
-
Field Details
-
bufferSize
int bufferSize -
file
File file -
files
-
userCode
StringBuilder userCode -
classCode
String classCode -
initCode
String initCode -
initThrow
String initThrow -
eofCode
String eofCode -
eofThrow
String eofThrow -
lexThrow
String lexThrow -
eofVal
String eofVal -
scanErrorException
-
cupSymbol
String cupSymbol -
string
StringBuilder string -
unicodeProperties
UnicodeProperties unicodeProperties -
charCount
boolean charCount -
lineCount
boolean lineCount -
columnCount
boolean columnCount -
cupCompatible
boolean cupCompatible -
cup2Compatible
boolean cup2Compatible -
cupDebug
boolean cupDebug -
isInteger
boolean isInteger -
isIntWrap
boolean isIntWrap -
isPublic
boolean isPublic -
isFinal
boolean isFinal -
isAbstract
boolean isAbstract -
bolUsed
boolean bolUsed -
standalone
boolean standalone -
debugOption
boolean debugOption -
eofclose
boolean eofclose -
isImplementing
String isImplementing -
isExtending
String isExtending -
className
String className -
functionName
String functionName -
tokenType
String tokenType -
visibility
String visibility -
ctorArgs
-
ctorTypes
-
states
LexicalStates states -
actions
-
charClasses
-
-
Constructor Details
-
AbstractLexScan
public AbstractLexScan()
-
-
Method Details
-
getUnicodeProperties
- Specified by:
getUnicodeProperties
in interfaceILexScan
-
getCharClasses
-
setFile
-
symbol
-
symbol
java_cup.runtime.Symbol symbol(int type) -
symbol_countUpdate
Updates line and column count to the beginning of the first non whitespace character in yytext, but leaves yyline()+lexColumn() untouched. -
makeMacroIdent
String makeMacroIdent() -
conc
-
concExc
-
populateDefaultVersionUnicodeProperties
void populateDefaultVersionUnicodeProperties() -
initUnicodeCharClasses
void initUnicodeCharClasses() -
includeFile
-
popFile
File popFile() -
actions
-
file
-
classCode
-
initCode
-
initThrow
-
eofCode
-
eofThrow
-
lexThrow
-
eofVal
-
scanErrorException
-
userCode
-
cupSymbol
-
charCount
public boolean charCount() -
lineCount
public boolean lineCount() -
columnCount
public boolean columnCount() -
cupCompatible
public boolean cupCompatible() -
cup2Compatible
public boolean cup2Compatible() -
cupDebug
public boolean cupDebug() -
isInteger
public boolean isInteger() -
isIntWrap
public boolean isIntWrap() -
isPublic
public boolean isPublic() -
isFinal
public boolean isFinal() -
isAbstract
public boolean isAbstract() -
bolUsed
public boolean bolUsed() -
standalone
public boolean standalone() -
debugOption
public boolean debugOption() -
eofclose
public boolean eofclose() -
isImplementing
-
isExtending
-
className
-
functionName
-
tokenType
-
visibility
-
stateNames
-
getStateNumber
-
ctorArgsCount
public int ctorArgsCount() -
ctorType
-
ctorArg
-
bufferSize
public int bufferSize() -
currentLine
Deprecated.UselexLine()
directly.Returns the current line number. -
isColumnCount
Deprecated. -
lexLine
protected abstract int lexLine() -
lexColumn
protected abstract int lexColumn() -
lexText
-
lexPushStream
- Throws:
IOException
-
lexLine()
directly.