trait LexerInput extends AnyRef
A source of characters for a Lexer.
- Alphabetic
- By Inheritance
- LexerInput
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
column: Int
The index of the character relative to the beginning of the line, as a 16 bit java character.
The index of the character relative to the beginning of the line, as a 16 bit java character. (0 based)
-
abstract
def
consume(n: Int): Unit
Consume n code points.
-
abstract
def
consume(): Unit
Consume and advance to the next code point.
- abstract def countSpaces(offset: Int = 0, max: Int = MAX_VALUE): Int
-
abstract
def
countWhiteSpaces(offset: Int = 0): Int
Count the number of whiteSpaces from the specified offset
-
abstract
def
createMark(): Mark
Create a mark in the Input so you can reset the input to it later
-
abstract
def
current: Int
The current code point character in the input (or LexerInput#Eof if the EoF was reached).
-
abstract
def
line: Int
The current Line number (0 based).
-
abstract
def
lookAhead(i: Int): Int
Return the character
icharacters ahead of the current position, (or LexerInput#Eof if the EoF was reached). -
abstract
def
nonEof: Boolean
We're not at the Eof
-
abstract
def
offset: Int
The absolute offset (0..n) of the current character.
-
abstract
def
position: Position
the triple (line, column, offset)
-
abstract
def
reset(mark: Mark): Unit
Reset the input to the specified offset
-
abstract
def
subSequence(start: Int, end: Int): CharSequence
Return the sub-sequence of characters between the specified positions
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
consumeWhile(p: (Int) ⇒ Boolean): Unit
Consume while the condition holds.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
val
sourceName: String
Return the name of the source, if existent (Usually a file name, or similar).
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated