/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/** Internal symbol kinds, which distinguish between elements of
* different subclasses of Symbol. Symbol kinds are organized so they can be
* or'ed to sets.
*
* <p><b>This is NOT part of any supported API.
* 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.</b>
*/
public class Kinds {
/** The empty set of kinds.
*/
/** The kind of package symbols.
*/
/** The kind of type symbols (classes, interfaces and type variables).
*/
/** The kind of variable symbols.
*/
/** The kind of values (variables or non-variable expressions), includes VAR.
*/
/** The kind of methods.
*/
/** The error kind, which includes all other kinds.
*/
/** The set of all kinds.
*/
/** Kinds for erroneous symbols that complement the above
*/
}
return name;
}
return "Kindname";
}
}
}
/** A KindName representing a given symbol kind
*/
switch (kind) {
}
}
/** A KindName representing a given symbol
*/
case PACKAGE:
case ENUM:
case ANNOTATION_TYPE:
case CLASS:
case INTERFACE:
case TYPE_PARAMETER:
case ENUM_CONSTANT:
case FIELD:
case PARAMETER:
case LOCAL_VARIABLE:
case EXCEPTION_PARAMETER:
case RESOURCE_VARIABLE:
case CONSTRUCTOR:
return KindName.CONSTRUCTOR;
case METHOD:
case STATIC_INIT:
return KindName.STATIC_INIT;
case INSTANCE_INIT:
return KindName.INSTANCE_INIT;
default:
// I don't think this can happen but it can't harm
// playing it safe --ahe
else
}
}
/** A set of KindName(s) representing a set of symbol's kinds.
*/
return kinds;
}
*/
return KindName.ANNOTATION;
else
}
/** A KindName representing the kind of a a missing symbol, given an
* error kind.
* */
switch (kind) {
case ABSENT_VAR:
case ABSENT_TYP:
default:
}
}
}