Package jflex.core

Class AbstractLexScan

java.lang.Object
jflex.core.AbstractLexScan
All Implemented Interfaces:
ILexScan
Direct Known Subclasses:
LexScan

public abstract class AbstractLexScan extends Object implements ILexScan
  • Field Details

    • bufferSize

      int bufferSize
    • file

      File file
    • files

      private final Deque<File> files
    • userCode

      StringBuilder userCode
    • classCode

      String classCode
    • initCode

      String initCode
    • initThrow

      String initThrow
    • eofCode

      String eofCode
    • eofThrow

      String eofThrow
    • lexThrow

      String lexThrow
    • eofVal

      String eofVal
    • scanErrorException

      public String scanErrorException
    • cupSymbol

      String cupSymbol
    • 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
    • isImplementing

      String isImplementing
    • isExtending

      String isExtending
    • className

      String className
    • functionName

      String functionName
    • tokenType

      String tokenType
    • visibility

      String visibility
    • ctorArgs

      List<String> ctorArgs
    • ctorTypes

      List<String> ctorTypes
    • states

    • actions

      List<Action> actions
    • charClasses

      final CharClasses charClasses
  • Constructor Details

    • AbstractLexScan

      public AbstractLexScan()
  • Method Details

    • getUnicodeProperties

      public UnicodeProperties getUnicodeProperties()
      Specified by:
      getUnicodeProperties in interface ILexScan
    • getCharClasses

      public CharClasses getCharClasses()
    • setFile

      public void setFile(File file)
    • symbol

      java_cup.runtime.Symbol symbol(int type, Object value)
    • symbol

      java_cup.runtime.Symbol symbol(int type)
    • symbol_countUpdate

      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.
    • makeMacroIdent

      String makeMacroIdent()
    • conc

      public static String conc(Object a, Object b)
    • concExc

      public static String concExc(Object a, Object b)
    • populateDefaultVersionUnicodeProperties

      void populateDefaultVersionUnicodeProperties()
    • initUnicodeCharClasses

      void initUnicodeCharClasses()
    • includeFile

      void includeFile(String filePath)
    • popFile

      File popFile()
    • actions

      public Iterable<Action> actions()
    • file

      public File file()
    • classCode

      public String classCode()
    • initCode

      public String initCode()
    • initThrow

      public String initThrow()
    • eofCode

      public String eofCode()
    • eofThrow

      public String eofThrow()
    • lexThrow

      public String lexThrow()
    • eofVal

      public String eofVal()
    • scanErrorException

      public String scanErrorException()
    • userCode

      public String userCode()
    • cupSymbol

      public 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 String isImplementing()
    • isExtending

      public String isExtending()
    • className

      public String className()
    • functionName

      public String functionName()
    • tokenType

      public String tokenType()
    • visibility

      public String visibility()
    • stateNames

      public Set<String> stateNames()
    • getStateNumber

      public int getStateNumber(String name)
    • ctorArgsCount

      public int ctorArgsCount()
    • ctorType

      public String ctorType(int i)
    • ctorArg

      public String ctorArg(int i)
    • bufferSize

      public int bufferSize()
    • currentLine

      @Deprecated public int currentLine()
      Deprecated.
      Use lexLine() directly.
      Returns the current line number.
    • isColumnCount

      @Deprecated public boolean isColumnCount()
      Deprecated.
    • lexLine

      protected abstract int lexLine()
    • lexColumn

      protected abstract int lexColumn()
    • lexText

      protected abstract String lexText()
    • lexPushStream

      protected abstract void lexPushStream(File f) throws IOException
      Throws:
      IOException