Package jflex.core
Class AbstractLexScan
java.lang.Object
jflex.core.AbstractLexScan
- All Implemented Interfaces:
ILexScan
- Direct Known Subclasses:
LexScan
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean
(package private) int
(package private) 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) boolean
(package private) boolean
(package private) boolean
(package private) LexicalStates
(package private) StringBuilder
(package private) String
(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()
getIntCharSet
(String propertyValue) int
int
getStateNumber
(String name) (package private) void
includeFile
(String filePath) void
void
initCharClasses
(AbstractLexScan.CharSetSize size, String version) initCode()
boolean
boolean
Deprecated.UsecolumnCount
boolean
isFinal()
boolean
boolean
boolean
isPublic()
protected abstract int
protected abstract int
protected abstract int
lexLine()
protected abstract void
lexPushback
(int n) protected abstract void
protected abstract String
lexText()
lexThrow()
boolean
(package private) String
void
maybeWarnUnicodeMatch
(int len) Warn if the matched length of a Unicode escape sequence is longer than expected.boolean
(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
-
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 -
noSuppressWarnings
boolean noSuppressWarnings -
isImplementing
String isImplementing -
isExtending
String isExtending -
className
String className -
functionName
String functionName -
tokenType
String tokenType -
visibility
String visibility -
tokenSizeLimit
String tokenSizeLimit -
ctorArgs
-
ctorTypes
-
states
LexicalStates states -
actions
-
charClasses
CharClasses charClasses
-
-
Constructor Details
-
AbstractLexScan
public AbstractLexScan()
-
-
Method Details
-
getUnicodeProperties
- Specified by:
getUnicodeProperties
in interfaceILexScan
-
getMaximumCodePoint
public int getMaximumCodePoint() -
getIntCharSet
-
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() -
initCharClasses
-
initCharClasses
-
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() -
noSuppressWarnings
public boolean noSuppressWarnings() -
getTokenSizeLimit
-
currentLine
Deprecated.UselexLine()
directly.Returns the current line number. -
isColumnCount
Deprecated.UsecolumnCount
-
maybeWarnUnicodeMatch
public void maybeWarnUnicodeMatch(int len) Warn if the matched length of a Unicode escape sequence is longer than expected. Push back the extra characters to be matched again.- Parameters:
len
- expected Unicode escape sequence length
-
lexLine
protected abstract int lexLine() -
lexColumn
protected abstract int lexColumn() -
lexLength
protected abstract int lexLength() -
lexText
-
lexPushback
protected abstract void lexPushback(int n) -
lexPushStream
- Throws:
IOException
-
lexLine()
directly.