Packages

c

org.mulesoft.lexer

BaseLexer

abstract class BaseLexer[T <: Token] extends Lexer[T]

Linear Supertypes
Lexer[T], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BaseLexer
  2. Lexer
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BaseLexer(input: LexerInput, positionOffset: Position)

Type Members

  1. type TD = TokenData[T]

Abstract Value Members

  1. abstract def initialize(): Unit

    Init must initialize the current _tokenData (may be invoking advance)

    Init must initialize the current _tokenData (may be invoking advance)

    Attributes
    protected
  2. abstract def processPending(): Unit

    Process all pending tokens.

    Process all pending tokens. Trivial implementation just emit the EofToken More complex ones can continue returning pending tokens until they emit the EofToken

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def advance(): Unit

    Advance the lexer to the next token.

    Advance the lexer to the next token.

    Definition Classes
    BaseLexerLexer
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. final def beginOfLine: Boolean
    Annotations
    @inline()
  7. final def check(str: String): Int

    Compare with the specified String and return 0 or the length of the string if all characters are equal

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. final def consume(str: String): Boolean

    Compare with the specified String and consume if all characters are equal

  10. def consume(c: Char): Boolean

    Compare with the specified char and consume if they are equal

    Compare with the specified char and consume if they are equal

    Attributes
    protected
  11. final def consume(n: Int): Unit
    Attributes
    protected
  12. final def consume(): Unit
  13. final def consumeAndEmit(n: Int, token: T): Boolean
  14. final def consumeAndEmit(t1: T, t2: T): Boolean
  15. final def consumeAndEmit(token: T): Boolean
  16. def consumeWhile(p: (Int) ⇒ Boolean): Unit
    Attributes
    protected
  17. final def currentChar: Int
    Attributes
    protected
  18. def emit(t1: T, t2: T): Boolean

    Emit 2 Tokens

    Emit 2 Tokens

    Annotations
    @failfast()
  19. def emit(token: T): Boolean

    Emit a Token

    Emit a Token

    Annotations
    @failfast()
  20. def emitForMark(t1: T, t2: T): Boolean

    Emit 2 Tokens with same mark

    Emit 2 Tokens with same mark

    Attributes
    protected
    Annotations
    @failfast()
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  23. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def findToken(chr: Int): Unit
    Attributes
    protected
  25. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. var input: LexerInput
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. final def lookAhead(n: Int): Int
  30. var mark: Position
    Attributes
    protected
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. def nonEof: Boolean

    We're not at the Eof

  33. def nonTokenEmitted: Boolean

    Check if there are emitted tokens

  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. final def optional(p: Boolean): Boolean
  37. val positionOffset: Position
  38. def reset(): Unit
    Attributes
    protected
  39. val sourceName: String
  40. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  41. def toString(): String
    Definition Classes
    AnyRef → Any
  42. def token: T

    get the current token in the input stream.

    get the current token in the input stream.

    Definition Classes
    BaseLexerLexer
  43. def tokenData: TD

    All the token data.

    All the token data.

    Definition Classes
    BaseLexerLexer
  44. val tokenQueue: Queue[TD]
    Attributes
    protected
  45. def tokenString: String

    Get the current Token String.

    Get the current Token String.

    Definition Classes
    Lexer
  46. def tokenText: CharSequence

    Get the current Token Char Sequence.

    Get the current Token Char Sequence.

    Definition Classes
    BaseLexerLexer
  47. def tokenText(td: TD): CharSequence

    Get the specified Token Char Sequence.

  48. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Lexer[T]

Inherited from AnyRef

Inherited from Any

Ungrouped