All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class openjava.main.Scanner

java.lang.Object
   |
   +----openjava.main.Scanner

public class Scanner
extends Object

Variable Index

 o debugLevel
 o lexer
 o nextToken
1-lookahead token
 o oldToken
last token
 o presentToken
present token
 o userKeywords
table for user's keyword
 o userModifiers

Constructor Index

 o Scanner()
Constructs this scanner.
 o Scanner(InputStream)
Constructs this scanner.
 o Scanner(InputStream, String[])
Constructs this scanner.

Method Index

 o getToken()
recognizes the next token and returns the token
 o getTokenID(String)
 o setDebug(int)
 o setUserKeywords(String[])
 o setUserModifiers(String[])

Variables

 o lexer
 protected Yylex lexer
 o oldToken
 protected Yytoken oldToken
last token

 o presentToken
 protected Yytoken presentToken
present token

 o nextToken
 protected Yytoken nextToken
1-lookahead token

 o userKeywords
 protected String userKeywords[]
table for user's keyword

 o userModifiers
 protected String userModifiers[]
 o debugLevel
 protected int debugLevel

Constructors

 o Scanner
 public Scanner() throws IOException
Constructs this scanner.

 o Scanner
 public Scanner(InputStream in) throws IOException
Constructs this scanner.

 o Scanner
 public Scanner(InputStream in,
                String keywords[]) throws IOException
Constructs this scanner.

Methods

 o getToken
 public Yytoken getToken() throws IOException
recognizes the next token and returns the token

 o setUserKeywords
 public void setUserKeywords(String uk[])
 o setUserModifiers
 public void setUserModifiers(String uk[])
 o getTokenID
 public static int getTokenID(String str)
 o setDebug
 public void setDebug(int level)

All Packages  Class Hierarchy  This Package  Previous  Next  Index