public enum TypeTag extends Enum<TypeTag>
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 |
TypeTag.NumericClasses |
Enum Constant and Description |
---|
ARRAY
The tag of all array types.
|
BOOLEAN
The tag of the basic type `boolean'.
|
BOT
The tag of the bottom type
<null> . |
BYTE
The tag of the basic type `byte'.
|
CHAR
The tag of the basic type `char'.
|
CLASS
The tag of all class and interface types.
|
DEFERRED
The tag of deferred expression types in method context
|
DOUBLE
The tag of the basic type `double'.
|
ERROR
The tag of the error type.
|
FLOAT
The tag of the basic type `float'.
|
FORALL
The tag of all polymorphic (method-) types.
|
INT
The tag of the basic type `int'.
|
LONG
The tag of the basic type `long'.
|
METHOD
The tag of all (monomorphic) method types.
|
NONE
The tag of a missing type.
|
PACKAGE
The tag of all package "types".
|
SHORT
The tag of the basic type `short'.
|
TYPEVAR
The tag of all (source-level) type variables.
|
UNDETVAR
The tag of all instantiatable type variables.
|
UNINITIALIZED_OBJECT |
UNINITIALIZED_THIS
Pseudo-types, these are special tags
|
UNKNOWN
The tag of an unknown type
|
VOID
The tag of the type `void'.
|
WILDCARD
The tag of all type arguments.
|
Modifier and Type | Method and Description |
---|---|
Tree.Kind |
getKindLiteral() |
TypeKind |
getPrimitiveTypeKind() |
static int |
getTypeTagCount()
Returns the number of type tags.
|
boolean |
isStrictSubRangeOf(TypeTag tag) |
boolean |
isSubRangeOf(TypeTag tag) |
static TypeTag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeTag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeTag BYTE
public static final TypeTag CHAR
public static final TypeTag SHORT
public static final TypeTag LONG
public static final TypeTag FLOAT
public static final TypeTag INT
public static final TypeTag DOUBLE
public static final TypeTag BOOLEAN
public static final TypeTag VOID
public static final TypeTag CLASS
public static final TypeTag ARRAY
public static final TypeTag METHOD
public static final TypeTag PACKAGE
public static final TypeTag TYPEVAR
public static final TypeTag WILDCARD
public static final TypeTag FORALL
public static final TypeTag DEFERRED
public static final TypeTag BOT
<null>
.public static final TypeTag NONE
public static final TypeTag ERROR
public static final TypeTag UNKNOWN
public static final TypeTag UNDETVAR
public static final TypeTag UNINITIALIZED_THIS
public static final TypeTag UNINITIALIZED_OBJECT
public static TypeTag[] values()
for (TypeTag c : TypeTag.values()) System.out.println(c);
public static TypeTag valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isStrictSubRangeOf(TypeTag tag)
public boolean isSubRangeOf(TypeTag tag)
public static int getTypeTagCount()
public Tree.Kind getKindLiteral()
public TypeKind getPrimitiveTypeKind()
Copyright © 2015. All rights reserved.