com.sun.tools.javac.parser
Class Keywords
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
Keywords
protected Keywords(Context context)
instance
public static Keywords instance(Context context)
key
public Token key(Name name)
enterKeyword
private void enterKeyword(java.lang.String s,
Token token)