Lines Matching refs:kind
54 /** The kind of package symbols.
58 /** The kind of type symbols (classes, interfaces and type variables).
62 /** The kind of variable symbols.
66 /** The kind of values (variables or non-variable expressions), includes VAR.
70 /** The kind of methods.
74 /** The error kind, which includes all other kinds.
130 /** A KindName representing a given symbol kind
132 public static KindName kindName(int kind) {
133 switch (kind) {
139 default : throw new AssertionError("Unexpected kind: "+kind);
182 if (sym.kind == VAL)
187 throw new AssertionError("Unexpected kind: "+sym.getKind());
193 public static EnumSet<KindName> kindNames(int kind) {
195 if ((kind & VAL) != 0)
196 kinds.add(((kind & VAL) == VAR) ? KindName.VAR : KindName.VAL);
197 if ((kind & MTH) != 0) kinds.add(KindName.METHOD);
198 if ((kind & TYP) != 0) kinds.add(KindName.CLASS);
199 if ((kind & PCK) != 0) kinds.add(KindName.PACKAGE);
203 /** A KindName representing the kind of a given class/interface type.
219 /** A KindName representing the kind of a a missing symbol, given an
220 * error kind.
222 public static KindName absentKind(int kind) {
223 switch (kind) {
231 throw new AssertionError("Unexpected kind: "+kind);