com.sun.tools.javac.code
Class Kinds

java.lang.Object
  extended by com.sun.tools.javac.code.Kinds

public class Kinds
extends java.lang.Object

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

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.


Nested Class Summary
static class Kinds.KindName
           
 
Field Summary
static int ABSENT_MTH
           
static int ABSENT_TYP
           
static int ABSENT_VAR
           
static int AllKinds
          The set of all kinds.
static int AMBIGUOUS
           
static int ERR
          The error kind, which includes all other kinds.
static int ERRONEOUS
          Kinds for erroneous symbols that complement the above
static int HIDDEN
           
static int MTH
          The kind of methods.
static int NIL
          The empty set of kinds.
static int PCK
          The kind of package symbols.
static int STATICERR
           
static int TYP
          The kind of type symbols (classes, interfaces and type variables).
static int VAL
          The kind of values (variables or non-variable expressions), includes VAR.
static int VAR
          The kind of variable symbols.
static int WRONG_MTH
           
static int WRONG_MTHS
           
 
Constructor Summary
private Kinds()
           
 
Method Summary
static Kinds.KindName absentKind(int kind)
          A KindName representing the kind of a a missing symbol, given an error kind.
static Kinds.KindName kindName(int kind)
          A KindName representing a given symbol kind
static Kinds.KindName kindName(Symbol sym)
          A KindName representing a given symbol
static java.util.EnumSet<Kinds.KindName> kindNames(int kind)
          A set of KindName(s) representing a set of symbol's kinds.
static Kinds.KindName typeKindName(Type t)
          A KindName representing the kind of a given class/interface type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NIL

public static final int NIL
The empty set of kinds.

See Also:
Constant Field Values

PCK

public static final int PCK
The kind of package symbols.

See Also:
Constant Field Values

TYP

public static final int TYP
The kind of type symbols (classes, interfaces and type variables).

See Also:
Constant Field Values

VAR

public static final int VAR
The kind of variable symbols.

See Also:
Constant Field Values

VAL

public static final int VAL
The kind of values (variables or non-variable expressions), includes VAR.

See Also:
Constant Field Values

MTH

public static final int MTH
The kind of methods.

See Also:
Constant Field Values

ERR

public static final int ERR
The error kind, which includes all other kinds.

See Also:
Constant Field Values

AllKinds

public static final int AllKinds
The set of all kinds.

See Also:
Constant Field Values

ERRONEOUS

public static final int ERRONEOUS
Kinds for erroneous symbols that complement the above

See Also:
Constant Field Values

AMBIGUOUS

public static final int AMBIGUOUS
See Also:
Constant Field Values

HIDDEN

public static final int HIDDEN
See Also:
Constant Field Values

STATICERR

public static final int STATICERR
See Also:
Constant Field Values

ABSENT_VAR

public static final int ABSENT_VAR
See Also:
Constant Field Values

WRONG_MTHS

public static final int WRONG_MTHS
See Also:
Constant Field Values

WRONG_MTH

public static final int WRONG_MTH
See Also:
Constant Field Values

ABSENT_MTH

public static final int ABSENT_MTH
See Also:
Constant Field Values

ABSENT_TYP

public static final int ABSENT_TYP
See Also:
Constant Field Values
Constructor Detail

Kinds

private Kinds()
Method Detail

kindName

public static Kinds.KindName kindName(int kind)
A KindName representing a given symbol kind


kindName

public static Kinds.KindName kindName(Symbol sym)
A KindName representing a given symbol


kindNames

public static java.util.EnumSet<Kinds.KindName> kindNames(int kind)
A set of KindName(s) representing a set of symbol's kinds.


typeKindName

public static Kinds.KindName typeKindName(Type t)
A KindName representing the kind of a given class/interface type.


absentKind

public static Kinds.KindName absentKind(int kind)
A KindName representing the kind of a a missing symbol, given an error kind.