public class Kinds extends Object
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.
Modifier and Type | Class and Description |
---|---|
static class |
Kinds.KindName |
Modifier and Type | Field and Description |
---|---|
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 |
MISSING_ENCL |
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 |
POLY
Poly kind, for deferred types.
|
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 |
static int |
WRONG_STATICNESS |
Modifier and Type | Method and Description |
---|---|
static Kinds.KindName |
absentKind(int kind)
A KindName representing the kind of a missing symbol, given an
error kind.
|
static Kinds.KindName |
kindName(int kind)
A KindName representing a given symbol kind
|
static Kinds.KindName |
kindName(MemberReferenceTree.ReferenceMode mode) |
static Kinds.KindName |
kindName(Symbol sym)
A KindName representing a given symbol
|
static 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.
|
public static final int NIL
public static final int PCK
public static final int TYP
public static final int VAR
public static final int VAL
public static final int MTH
public static final int POLY
public static final int ERR
public static final int AllKinds
public static final int ERRONEOUS
public static final int AMBIGUOUS
public static final int HIDDEN
public static final int STATICERR
public static final int MISSING_ENCL
public static final int ABSENT_VAR
public static final int WRONG_MTHS
public static final int WRONG_MTH
public static final int ABSENT_MTH
public static final int ABSENT_TYP
public static final int WRONG_STATICNESS
public static Kinds.KindName kindName(int kind)
public static Kinds.KindName kindName(MemberReferenceTree.ReferenceMode mode)
public static Kinds.KindName kindName(Symbol sym)
public static EnumSet<Kinds.KindName> kindNames(int kind)
public static Kinds.KindName typeKindName(Type t)
public static Kinds.KindName absentKind(int kind)
Copyright © 2017 earcam. All rights reserved.