com.sun.tools.javac.parser
Class Keywords

java.lang.Object
  extended by com.sun.tools.javac.parser.Keywords

public class Keywords
extends java.lang.Object

Map from Name to Token and Token to String.

This is NOT part of any API supported by Sun Microsystems. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.


Field Summary
private  Token[] key
          Keyword array.
static Context.Key<Keywords> keywordsKey
           
private  Log log
           
private  int maxKey
          The number of the last entered keyword.
private  Names names
           
private  Name[] tokenName
          The names of all tokens.
 
Constructor Summary
protected Keywords(Context context)
           
 
Method Summary
private  void enterKeyword(java.lang.String s, Token token)
           
static Keywords instance(Context context)
           
 Token key(Name name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keywordsKey

public static final Context.Key<Keywords> keywordsKey

log

private final Log log

names

private final Names names

key

private final Token[] key
Keyword array. Maps name indices to Token.


maxKey

private int maxKey
The number of the last entered keyword.


tokenName

private Name[] tokenName
The names of all tokens.

Constructor Detail

Keywords

protected Keywords(Context context)
Method Detail

instance

public static Keywords instance(Context context)

key

public Token key(Name name)

enterKeyword

private void enterKeyword(java.lang.String s,
                          Token token)