Package jflex.core
Class AbstractLexScan
- java.lang.Object
-
- jflex.core.AbstractLexScan
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractLexScan.CharSetSize
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<Action>
actions
(package private) boolean
bolUsed
(package private) int
bufferSize
(package private) CharClasses
charClasses
(package private) boolean
charCount
(package private) java.lang.String
classCode
(package private) java.lang.String
className
(package private) boolean
columnCount
(package private) java.util.List<java.lang.String>
ctorArgs
(package private) java.util.List<java.lang.String>
ctorTypes
(package private) boolean
cup2Compatible
(package private) boolean
cupCompatible
(package private) boolean
cupDebug
(package private) java.lang.String
cupSymbol
(package private) boolean
debugOption
(package private) boolean
eofclose
(package private) java.lang.String
eofCode
(package private) java.lang.String
eofThrow
(package private) java.lang.String
eofVal
(package private) java.io.File
file
private java.util.Deque<java.io.File>
files
(package private) java.lang.String
functionName
(package private) java.lang.String
initCode
(package private) java.lang.String
initThrow
(package private) boolean
isAbstract
(package private) java.lang.String
isExtending
(package private) boolean
isFinal
(package private) java.lang.String
isImplementing
(package private) boolean
isInteger
(package private) boolean
isIntWrap
(package private) boolean
isPublic
(package private) java.util.List<java.lang.String>
lexThrow
(package private) boolean
lineCount
(package private) boolean
noSuppressWarnings
java.lang.String
scanErrorException
(package private) boolean
standalone
(package private) LexicalStates
states
(package private) java.lang.StringBuilder
string
(package private) java.lang.String
tokenSizeLimit
(package private) java.lang.String
tokenType
(package private) UnicodeProperties
unicodeProperties
(package private) java.lang.StringBuilder
userCode
(package private) java.lang.String
visibility
-
Constructor Summary
Constructors Constructor Description AbstractLexScan()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Iterable<Action>
actions()
boolean
bolUsed()
int
bufferSize()
boolean
charCount()
java.lang.String
classCode()
java.lang.String
className()
boolean
columnCount()
static java.lang.String
conc(java.lang.Object a, java.lang.Object b)
static java.lang.String
concExc(java.lang.Object a, java.lang.Object b)
java.lang.String
ctorArg(int i)
int
ctorArgsCount()
java.lang.String
ctorType(int i)
boolean
cup2Compatible()
boolean
cupCompatible()
boolean
cupDebug()
java.lang.String
cupSymbol()
int
currentLine()
Deprecated.UselexLine()
directly.boolean
debugOption()
boolean
eofclose()
java.lang.String
eofCode()
java.lang.String
eofThrow()
java.lang.String
eofVal()
java.io.File
file()
java.lang.String
functionName()
CharClasses
getCharClasses()
IntCharSet
getIntCharSet(java.lang.String propertyValue)
int
getMaximumCodePoint()
int
getStateNumber(java.lang.String name)
java.lang.String
getTokenSizeLimit()
UnicodeProperties
getUnicodeProperties()
(package private) void
includeFile(java.lang.String filePath)
void
initCharClasses(AbstractLexScan.CharSetSize size)
void
initCharClasses(AbstractLexScan.CharSetSize size, java.lang.String version)
java.lang.String
initCode()
java.lang.String
initThrow()
boolean
isAbstract()
boolean
isColumnCount()
Deprecated.UsecolumnCount
java.lang.String
isExtending()
boolean
isFinal()
java.lang.String
isImplementing()
boolean
isInteger()
boolean
isIntWrap()
boolean
isPublic()
protected abstract int
lexColumn()
protected abstract int
lexLength()
protected abstract int
lexLine()
protected abstract void
lexPushback(int n)
protected abstract void
lexPushStream(java.io.File f)
protected abstract java.lang.String
lexText()
java.util.List<java.lang.String>
lexThrow()
boolean
lineCount()
(package private) java.lang.String
makeMacroIdent()
void
maybeWarnUnicodeMatch(int len)
Warn if the matched length of a Unicode escape sequence is longer than expected.boolean
noSuppressWarnings()
(package private) java.io.File
popFile()
(package private) void
populateDefaultVersionUnicodeProperties()
java.lang.String
scanErrorException()
void
setFile(java.io.File file)
boolean
standalone()
java.util.Set<java.lang.String>
stateNames()
(package private) java_cup.runtime.Symbol
symbol(int type)
(package private) java_cup.runtime.Symbol
symbol(int type, java.lang.Object value)
(package private) java_cup.runtime.Symbol
symbol_countUpdate(int type, java.lang.Object value)
Updates line and column count to the beginning of the first non whitespace character in yytext, but leaves yyline()+lexColumn() untouched.java.lang.String
tokenType()
java.lang.String
userCode()
java.lang.String
visibility()
-
-
-
Field Detail
-
bufferSize
int bufferSize
-
file
java.io.File file
-
files
private final java.util.Deque<java.io.File> files
-
userCode
java.lang.StringBuilder userCode
-
classCode
java.lang.String classCode
-
initCode
java.lang.String initCode
-
initThrow
java.lang.String initThrow
-
eofCode
java.lang.String eofCode
-
eofThrow
java.lang.String eofThrow
-
lexThrow
java.util.List<java.lang.String> lexThrow
-
eofVal
java.lang.String eofVal
-
scanErrorException
public java.lang.String scanErrorException
-
cupSymbol
java.lang.String cupSymbol
-
string
java.lang.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
java.lang.String isImplementing
-
isExtending
java.lang.String isExtending
-
className
java.lang.String className
-
functionName
java.lang.String functionName
-
tokenType
java.lang.String tokenType
-
visibility
java.lang.String visibility
-
tokenSizeLimit
java.lang.String tokenSizeLimit
-
ctorArgs
java.util.List<java.lang.String> ctorArgs
-
ctorTypes
java.util.List<java.lang.String> ctorTypes
-
states
LexicalStates states
-
actions
java.util.List<Action> actions
-
charClasses
CharClasses charClasses
-
-
Method Detail
-
getUnicodeProperties
public UnicodeProperties getUnicodeProperties()
- Specified by:
getUnicodeProperties
in interfaceILexScan
-
getMaximumCodePoint
public int getMaximumCodePoint()
-
getIntCharSet
public IntCharSet getIntCharSet(java.lang.String propertyValue)
-
getCharClasses
public CharClasses getCharClasses()
-
setFile
public void setFile(java.io.File file)
-
symbol
java_cup.runtime.Symbol symbol(int type, java.lang.Object value)
-
symbol
java_cup.runtime.Symbol symbol(int type)
-
symbol_countUpdate
java_cup.runtime.Symbol symbol_countUpdate(int type, java.lang.Object value)
Updates line and column count to the beginning of the first non whitespace character in yytext, but leaves yyline()+lexColumn() untouched.
-
makeMacroIdent
java.lang.String makeMacroIdent()
-
conc
public static java.lang.String conc(java.lang.Object a, java.lang.Object b)
-
concExc
public static java.lang.String concExc(java.lang.Object a, java.lang.Object b)
-
populateDefaultVersionUnicodeProperties
void populateDefaultVersionUnicodeProperties()
-
initCharClasses
public void initCharClasses(AbstractLexScan.CharSetSize size)
-
initCharClasses
public void initCharClasses(AbstractLexScan.CharSetSize size, java.lang.String version)
-
includeFile
void includeFile(java.lang.String filePath)
-
popFile
java.io.File popFile()
-
actions
public java.lang.Iterable<Action> actions()
-
file
public java.io.File file()
-
classCode
public java.lang.String classCode()
-
initCode
public java.lang.String initCode()
-
initThrow
public java.lang.String initThrow()
-
eofCode
public java.lang.String eofCode()
-
eofThrow
public java.lang.String eofThrow()
-
lexThrow
public java.util.List<java.lang.String> lexThrow()
-
eofVal
public java.lang.String eofVal()
-
scanErrorException
public java.lang.String scanErrorException()
-
userCode
public java.lang.String userCode()
-
cupSymbol
public java.lang.String 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
public java.lang.String isImplementing()
-
isExtending
public java.lang.String isExtending()
-
className
public java.lang.String className()
-
functionName
public java.lang.String functionName()
-
tokenType
public java.lang.String tokenType()
-
visibility
public java.lang.String visibility()
-
stateNames
public java.util.Set<java.lang.String> stateNames()
-
getStateNumber
public int getStateNumber(java.lang.String name)
-
ctorArgsCount
public int ctorArgsCount()
-
ctorType
public java.lang.String ctorType(int i)
-
ctorArg
public java.lang.String ctorArg(int i)
-
bufferSize
public int bufferSize()
-
noSuppressWarnings
public boolean noSuppressWarnings()
-
getTokenSizeLimit
public java.lang.String getTokenSizeLimit()
-
currentLine
@Deprecated public int currentLine()
Deprecated.UselexLine()
directly.Returns the current line number.
-
isColumnCount
@Deprecated public boolean 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
protected abstract java.lang.String lexText()
-
lexPushback
protected abstract void lexPushback(int n)
-
lexPushStream
protected abstract void lexPushStream(java.io.File f) throws java.io.IOException
- Throws:
java.io.IOException
-
-