public enum JavaType extends Enum<JavaType>
Enum Constant and Description |
---|
CALL_SITE
The Java 7
java.lang.invoke.CallSite type. |
EXECUTABLE
The
java.lang.reflect.Executable type. |
METHOD_HANDLE
The Java 7
java.lang.invoke.MethodHandle type. |
METHOD_HANDLES_LOOKUP
The Java 7
java.lang.invoke.MethodTypes.Lookup type. |
METHOD_TYPE
The Java 7
java.lang.invoke.MethodType type. |
Modifier and Type | Method and Description |
---|---|
TypeDescription |
getTypeStub()
Returns at least a stub representing this type where the stub does not define any methods or fields.
|
Class<?> |
load()
Loads the class that is represented by this Java type.
|
String |
toString() |
static JavaType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaType METHOD_HANDLE
java.lang.invoke.MethodHandle
type.public static final JavaType METHOD_TYPE
java.lang.invoke.MethodType
type.public static final JavaType METHOD_HANDLES_LOOKUP
java.lang.invoke.MethodTypes.Lookup
type.public static final JavaType CALL_SITE
java.lang.invoke.CallSite
type.public static final JavaType EXECUTABLE
java.lang.reflect.Executable
type.public static JavaType[] values()
for (JavaType c : JavaType.values()) System.out.println(c);
public static JavaType 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 TypeDescription getTypeStub()
public Class<?> load() throws ClassNotFoundException
ClassNotFoundException
- If the represented type cannot be loaded.Copyright © 2014–2016. All rights reserved.