Package jflex.core
Class AbstractLexScan
- java.lang.Object
-
- jflex.core.AbstractLexScan
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractLexScan.CharSetSize
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<Action>actions(package private) booleanbolUsed(package private) intbufferSize(package private) CharClassescharClasses(package private) booleancharCount(package private) java.lang.StringclassCode(package private) java.lang.StringclassName(package private) booleancolumnCount(package private) java.util.List<java.lang.String>ctorArgs(package private) java.util.List<java.lang.String>ctorTypes(package private) booleancup2Compatible(package private) booleancupCompatible(package private) booleancupDebug(package private) java.lang.StringcupSymbol(package private) booleandebugOption(package private) booleaneofclose(package private) java.lang.StringeofCode(package private) java.lang.StringeofThrow(package private) java.lang.StringeofVal(package private) java.io.Filefileprivate java.util.Deque<java.io.File>files(package private) java.lang.StringfunctionName(package private) java.lang.StringinitCode(package private) java.lang.StringinitThrow(package private) booleanisAbstract(package private) java.lang.StringisExtending(package private) booleanisFinal(package private) java.lang.StringisImplementing(package private) booleanisInteger(package private) booleanisIntWrap(package private) booleanisPublic(package private) java.util.List<java.lang.String>lexThrow(package private) booleanlineCount(package private) booleannoSuppressWarningsjava.lang.StringscanErrorException(package private) booleanstandalone(package private) LexicalStatesstates(package private) java.lang.StringBuilderstring(package private) java.lang.StringtokenSizeLimit(package private) java.lang.StringtokenType(package private) UnicodePropertiesunicodeProperties(package private) java.lang.StringBuilderuserCode(package private) java.lang.Stringvisibility
-
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()booleanbolUsed()intbufferSize()booleancharCount()java.lang.StringclassCode()java.lang.StringclassName()booleancolumnCount()static java.lang.Stringconc(java.lang.Object a, java.lang.Object b)static java.lang.StringconcExc(java.lang.Object a, java.lang.Object b)java.lang.StringctorArg(int i)intctorArgsCount()java.lang.StringctorType(int i)booleancup2Compatible()booleancupCompatible()booleancupDebug()java.lang.StringcupSymbol()intcurrentLine()Deprecated.UselexLine()directly.booleandebugOption()booleaneofclose()java.lang.StringeofCode()java.lang.StringeofThrow()java.lang.StringeofVal()java.io.Filefile()java.lang.StringfunctionName()CharClassesgetCharClasses()IntCharSetgetIntCharSet(java.lang.String propertyValue)intgetMaximumCodePoint()intgetStateNumber(java.lang.String name)java.lang.StringgetTokenSizeLimit()UnicodePropertiesgetUnicodeProperties()(package private) voidincludeFile(java.lang.String filePath)voidinitCharClasses(AbstractLexScan.CharSetSize size)voidinitCharClasses(AbstractLexScan.CharSetSize size, java.lang.String version)java.lang.StringinitCode()java.lang.StringinitThrow()booleanisAbstract()booleanisColumnCount()Deprecated.UsecolumnCountjava.lang.StringisExtending()booleanisFinal()java.lang.StringisImplementing()booleanisInteger()booleanisIntWrap()booleanisPublic()protected abstract intlexColumn()protected abstract intlexLength()protected abstract intlexLine()protected abstract voidlexPushback(int n)protected abstract voidlexPushStream(java.io.File f)protected abstract java.lang.StringlexText()java.util.List<java.lang.String>lexThrow()booleanlineCount()(package private) java.lang.StringmakeMacroIdent()voidmaybeWarnUnicodeMatch(int len)Warn if the matched length of a Unicode escape sequence is longer than expected.booleannoSuppressWarnings()(package private) java.io.FilepopFile()(package private) voidpopulateDefaultVersionUnicodeProperties()java.lang.StringscanErrorException()voidsetFile(java.io.File file)booleanstandalone()java.util.Set<java.lang.String>stateNames()(package private) java_cup.runtime.Symbolsymbol(int type)(package private) java_cup.runtime.Symbolsymbol(int type, java.lang.Object value)(package private) java_cup.runtime.Symbolsymbol_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.StringtokenType()java.lang.StringuserCode()java.lang.Stringvisibility()
-
-
-
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:
getUnicodePropertiesin 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
-
-