java.lang.Object
weka.filters.unsupervised.instance.subsetbyexpression.Scanner
所有已实现的接口:
java_cup.runtime.Scanner

public class Scanner extends Object implements java_cup.runtime.Scanner
A scanner for evaluating whether an Instance is to be included in a subset or not.
版本:
$Revision: 9804 $
作者:
FracPete (fracpete at waikato dot ac dot nz)
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final int
    lexical states
    static final int
    This character denotes the end of file
    static final int
     
  • 构造器概要

    构造器
    构造器
    说明
    Creates a new scanner.
    Scanner(InputStream r, java_cup.runtime.SymbolFactory sf)
     
    Creates a new scanner There is also a java.io.InputStream version of this constructor.
  • 方法概要

    修饰符和类型
    方法
    说明
    java_cup.runtime.Symbol
    Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.
    final void
    yybegin(int newState)
    Enters a new lexical state
    final char
    yycharat(int pos)
    Returns the character at position pos from the matched text.
    final void
    Closes the input stream.
    final int
    Returns the length of the matched text region.
    void
    yypushback(int number)
    Pushes the specified amount of characters back into the input stream.
    final void
    yyreset(Reader reader)
    Resets the scanner to read from a new input stream.
    final int
    Returns the current lexical state.
    final String
    Returns the text matched by the current regular expression.

    从类继承的方法 java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • YYEOF

      public static final int YYEOF
      This character denotes the end of file
      另请参阅:
    • STRING

      public static final int STRING
      lexical states
      另请参阅:
    • YYINITIAL

      public static final int YYINITIAL
      另请参阅:
  • 构造器详细资料

    • Scanner

      public Scanner(InputStream r, java_cup.runtime.SymbolFactory sf)
    • Scanner

      public Scanner(Reader in)
      Creates a new scanner There is also a java.io.InputStream version of this constructor.
      参数:
      in - the java.io.Reader to read input from.
    • Scanner

      public Scanner(InputStream in)
      Creates a new scanner. There is also java.io.Reader version of this constructor.
      参数:
      in - the java.io.Inputstream to read input from.
  • 方法详细资料

    • yyclose

      public final void yyclose() throws IOException
      Closes the input stream.
      抛出:
      IOException
    • yyreset

      public final void yyreset(Reader reader)
      Resets the scanner to read from a new input stream. Does not close the old reader. All internal variables are reset, the old input stream cannot be reused (internal buffer is discarded and lost). Lexical state is set to ZZ_INITIAL.
      参数:
      reader - the new input stream
    • yystate

      public final int yystate()
      Returns the current lexical state.
    • yybegin

      public final void yybegin(int newState)
      Enters a new lexical state
      参数:
      newState - the new lexical state
    • yytext

      public final String yytext()
      Returns the text matched by the current regular expression.
    • yycharat

      public final char yycharat(int pos)
      Returns the character at position pos from the matched text. It is equivalent to yytext().charAt(pos), but faster
      参数:
      pos - the position of the character to fetch. A value from 0 to yylength()-1.
      返回:
      the character at position pos
    • yylength

      public final int yylength()
      Returns the length of the matched text region.
    • yypushback

      public void yypushback(int number)
      Pushes the specified amount of characters back into the input stream. They will be read again by then next call of the scanning method
      参数:
      number - the number of characters to be read again. This number must not be greater than yylength()!
    • next_token

      public java_cup.runtime.Symbol next_token() throws IOException
      Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.
      指定者:
      next_token 在接口中 java_cup.runtime.Scanner
      返回:
      the next token
      抛出:
      IOException - if any I/O-Error occurs