kinds.java

来自「GJC编译器的源代码。是一个开放源代码的工业级编译器。」· Java 代码 · 共 57 行

JAVA
57
字号
/**
 * @(#)Kinds.java	1.10 03/01/23
 *
 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.sun.tools.javac.v8.code;

/**
 * Internal symbol kinds, which distinguish between elements of
 *  different subclasses of Symbol. Symbol kinds are organized so they can be
 *  or'ed to sets.
 */
public interface Kinds {

    /**
     * The empty set of kinds.
     */
    int NIL = 0;

    /**
     * The kind of package symbols.
     */
    int PCK = 1;

    /**
     * The kind of type symbols (classes, interfaces and type variables).
     */
    int TYP = 2;

    /**
     * The kind of variable symbols.
     */
    int VAR = 4;

    /**
     * The kind of values (variables or non-variable expressions), includes VAR.
     */
    int VAL = 8 | VAR;

    /**
     * The kind of methods.
     */
    int MTH = 16;

    /**
     * The error kind, which includes all other kinds.
     */
    int ERR = 31;

    /**
     * The set of all kinds.
     */
    int AllKinds = ERR;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?