Package jflex.core

Class AbstractLexScan

  • All Implemented Interfaces:
    ILexScan
    Direct Known Subclasses:
    LexScan

    public abstract class AbstractLexScan
    extends java.lang.Object
    implements ILexScan
    • 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
      • 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
      • actions

        java.util.List<Action> actions
    • Constructor Detail

      • AbstractLexScan

        public AbstractLexScan()
    • Method Detail

      • getMaximumCodePoint

        public int getMaximumCodePoint()
      • getIntCharSet

        public IntCharSet getIntCharSet​(java.lang.String propertyValue)
      • 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()
      • 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.
        Use lexLine() directly.
        Returns the current line number.
      • isColumnCount

        @Deprecated
        public boolean isColumnCount()
        Deprecated.
      • 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