Class AbstractLexScan
java.lang.Object
jflex.core.AbstractLexScan
- All Implemented Interfaces:
ILexScan
- Direct Known Subclasses:
LexScan
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactions()booleanbolUsed()intbooleanbooleanstatic Stringstatic StringctorArg(int i) intctorType(int i) booleanbooleanbooleancupDebug()intDeprecated.booleanbooleaneofclose()eofCode()eofThrow()eofVal()file()getIntCharSet(String propertyValue) intintgetStateNumber(String name) voidvoidinitCharClasses(AbstractLexScan.CharSetSize size, String version) initCode()booleanbooleanDeprecated.UsecolumnCountbooleanisFinal()booleanbooleanbooleanisPublic()protected abstract intprotected abstract intprotected abstract intlexLine()protected abstract voidlexPushback(int n) protected abstract voidprotected abstract StringlexText()lexThrow()booleanvoidmaybeWarnUnicodeMatch(int len) Warn if the matched length of a Unicode escape sequence is longer than expected.booleanvoidbooleanuserCode()
-
Field Details
-
scanErrorException
-
-
Constructor Details
-
AbstractLexScan
public AbstractLexScan()
-
-
Method Details
-
getUnicodeProperties
- Specified by:
getUnicodePropertiesin interfaceILexScan
-
getMaximumCodePoint
public int getMaximumCodePoint() -
getIntCharSet
-
getCharClasses
-
setFile
-
conc
-
concExc
-
initCharClasses
-
initCharClasses
-
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.