API Docs for:
Show:

flavors.java.Scanner Class

Module: flavors
Parent Module: pat

Allocates a new Scanner for Java format specifiers.

Constructor

flavors.java.Scanner

(
  • input
)
Scanner

Parameters:

  • input String | Array

    String or character array to be scanned

Returns:

Scanner: New Scanner instance

Item Index

Methods

err

(
  • hint
)

Throws an error using the given hint for the error message. The error message includes the relevant input substring, the index of the error prone character within the input, and the given hint.

Parameters:

  • hint String

    To be included in the error message

hasNext

() Boolean

Returns true if it's possible to scan another token, false otherwise.

Returns:

Boolean:

input

(
  • [input]
)
Scanner | Array chainable

Sets or returns this Scanner's input.

Parameters:

  • [input] String | Array optional

    String or character array to be scanned

Returns:

Scanner | Array: This Scanner if called as setter, this Scanner's current input if called as getter.

next

() Object

Returns the next token or undefined if there is no more text to scan.

Returns:

Object:

reset

() Scanner chainable

Resets this Scanner's state.

Returns:

Scanner: