Modifier and Type | Class and Description |
---|---|
protected static class | JavaType.LatentTypeWithSimpleName
A latent type that resolves the simple name without considering the declaring type which is not normally available. |
Modifier and Type | Field and Description |
---|---|
public static final JavaType | ACCESS_CONTROL_CONTEXT
The |
public static final JavaType | CALL_SITE
The Java 7 |
public static final JavaType | CLASS_DESCRIPTION
The Java 12 |
public static final JavaType | CONSTABLE
The Java 12 |
public static final JavaType | CONSTANT_BOOTSTRAPS
The Java 12 |
public static final JavaType | CONSTANT_DESCRIPTION
The Java 12 |
public static final JavaType | DIRECT_METHOD_HANDLE_DESCRIPTION
The Java 12 |
public static final JavaType | DYNAMIC_CONSTANT_DESCRIPTION
The Java 12 |
public static final JavaType | EXECUTABLE
The Java 7 |
public static final JavaType | METHOD_HANDLE
The Java 7 |
public static final JavaType | METHOD_HANDLE_DESCRIPTION
The Java 12 |
public static final JavaType | METHOD_HANDLES
The Java 7 |
public static final JavaType | METHOD_HANDLES_LOOKUP
The Java 7 |
public static final JavaType | METHOD_TYPE
The Java 7 |
public static final JavaType | METHOD_TYPE_DESCRIPTION
The Java 12 |
public static final JavaType | MODULE
The Java 9 |
public static final JavaType | OBJECT_METHODS
The Java 14 |
public static final JavaType | PARAMETER
The Java 8 |
public static final JavaType | RECORD
The Java 14 |
public static final JavaType | TYPE_DESCRIPTOR
The Java 12 |
public static final JavaType | TYPE_DESCRIPTOR_OF_FIELD
The Java 12 |
public static final JavaType | TYPE_DESCRIPTOR_OF_METHOD
The Java 12 |
private final TypeDescription | typeDescription
The type description to represent this type which is either a loaded type or a stub. |
public static final JavaType | VAR_HANDLE
The Java 9 |
Access | Constructor and Description |
---|---|
private | JavaType(String
The binary name of this type. typeName, int The modifiers of this type when creating a stub. modifiers, Type The super class of this type when creating a stub or superClass, Type... null if no super class is defined.The interfaces of this type when creating a stub. anInterface)Creates a new java type representation. |
private | JavaType(String
The binary name of this type. typeName, int The modifiers of this type when creating a stub. modifiers, TypeDefinition The super class of this type when creating a stub or superClass, TypeDefinition... null if no super class is defined.The interfaces of this type when creating a stub. anInterface)Creates a new java type representation. |
private | JavaType(String
The binary name of this type. typeName, int The modifiers of this type when creating a stub. modifiers, TypeDescription.The super class of this type when creating a stub or superClass,null if no super class is defined.The interfaces of this type when creating a stub. interfacesCreates a new java type representation. |
Modifier and Type | Method and Description |
---|---|
private Boolean | Returns: true if this type is available on the current JVM.Returns |
public TypeDescription | Returns: A type description for this Java type.Returns at least a stub representing this type where the stub does not define any methods or fields. |
public boolean | Returns: true if this type is available on the current JVM.Returns |
public boolean | Returns: true if the supplied object is an instance of this type.The instance to check. instance)Checks if the supplied object is an instance of this type. |
public Class | Returns: A loaded type of this Java type.Loads the class that is represented by this Java type. |
public TypeDescription | Returns: A loaded type of this Java type.Loads the class that is represented by this Java type and represents it as a |
public static JavaType | |
public static JavaType[] |
ACCESS_CONTROL_CONTEXT | back to summary |
---|---|
public static final JavaType ACCESS_CONTROL_CONTEXT The |
CALL_SITE | back to summary |
---|---|
public static final JavaType CALL_SITE The Java 7 |
CLASS_DESCRIPTION | back to summary |
---|---|
public static final JavaType CLASS_DESCRIPTION The Java 12 |
CONSTABLE | back to summary |
---|---|
public static final JavaType CONSTABLE The Java 12 |
CONSTANT_BOOTSTRAPS | back to summary |
---|---|
public static final JavaType CONSTANT_BOOTSTRAPS The Java 12 |
CONSTANT_DESCRIPTION | back to summary |
---|---|
public static final JavaType CONSTANT_DESCRIPTION The Java 12 |
DIRECT_METHOD_HANDLE_DESCRIPTION | back to summary |
---|---|
public static final JavaType DIRECT_METHOD_HANDLE_DESCRIPTION The Java 12 |
DYNAMIC_CONSTANT_DESCRIPTION | back to summary |
---|---|
public static final JavaType DYNAMIC_CONSTANT_DESCRIPTION The Java 12 |
EXECUTABLE | back to summary |
---|---|
public static final JavaType EXECUTABLE The Java 7 |
METHOD_HANDLE | back to summary |
---|---|
public static final JavaType METHOD_HANDLE The Java 7 |
METHOD_HANDLE_DESCRIPTION | back to summary |
---|---|
public static final JavaType METHOD_HANDLE_DESCRIPTION The Java 12 |
METHOD_HANDLES | back to summary |
---|---|
public static final JavaType METHOD_HANDLES The Java 7 |
METHOD_HANDLES_LOOKUP | back to summary |
---|---|
public static final JavaType METHOD_HANDLES_LOOKUP The Java 7 |
METHOD_TYPE | back to summary |
---|---|
public static final JavaType METHOD_TYPE The Java 7 |
METHOD_TYPE_DESCRIPTION | back to summary |
---|---|
public static final JavaType METHOD_TYPE_DESCRIPTION The Java 12 |
MODULE | back to summary |
---|---|
public static final JavaType MODULE The Java 9 |
OBJECT_METHODS | back to summary |
---|---|
public static final JavaType OBJECT_METHODS The Java 14 |
PARAMETER | back to summary |
---|---|
public static final JavaType PARAMETER The Java 8 |
RECORD | back to summary |
---|---|
public static final JavaType RECORD The Java 14 |
TYPE_DESCRIPTOR | back to summary |
---|---|
public static final JavaType TYPE_DESCRIPTOR The Java 12 |
TYPE_DESCRIPTOR_OF_FIELD | back to summary |
---|---|
public static final JavaType TYPE_DESCRIPTOR_OF_FIELD The Java 12 |
TYPE_DESCRIPTOR_OF_METHOD | back to summary |
---|---|
public static final JavaType TYPE_DESCRIPTOR_OF_METHOD The Java 12 |
typeDescription | back to summary |
---|---|
private final TypeDescription typeDescription The type description to represent this type which is either a loaded type or a stub. |
VAR_HANDLE | back to summary |
---|---|
public static final JavaType VAR_HANDLE The Java 9 |
JavaType | back to summary |
---|---|
private JavaType(String typeName, int modifiers, Type superClass, Type... anInterface) Creates a new java type representation. |
JavaType | back to summary |
---|---|
private JavaType(String typeName, int modifiers, TypeDefinition superClass, TypeDefinition... anInterface) Creates a new java type representation.
|
JavaType | back to summary |
---|---|
private JavaType(String typeName, int modifiers, TypeDescription. Creates a new java type representation.
|
doIsAvailable | back to summary |
---|---|
private Boolean doIsAvailable() Returns |
getTypeStub | back to summary |
---|---|
public TypeDescription getTypeStub() Returns at least a stub representing this type where the stub does not define any methods or fields. If a type exists for the current runtime, a loaded type representation is returned.
|
isAvailable | back to summary |
---|---|
public boolean isAvailable() Returns
|
isInstance | back to summary |
---|---|
public boolean isInstance(Object instance) Checks if the supplied object is an instance of this type.
|
load | back to summary |
---|---|
public Class Loads the class that is represented by this Java type.
|
loadAsDescription | back to summary |
---|---|
public TypeDescription loadAsDescription() throws ClassNotFoundException Loads the class that is represented by this Java type and represents it as a
|
valueOf | back to summary |
---|---|
public static JavaType valueOf(String name) |
values | back to summary |
---|---|
public static JavaType[] values() |
JavaConstant
replication of Java's string representation uses the simple name.
Access | Constructor and Description |
---|---|
protected | LatentTypeWithSimpleName(String
The name of the type. name, int The modifiers of the type. modifiers, TypeDescription.The super type or superClass,null if no such type exists.The interfaces that this type implements. interfaces)Creates a new latent type with a simple name. |
Modifier and Type | Method and Description |
---|---|
public String | getSimpleName()
Overrides net. Implements net. |
LatentTypeWithSimpleName | back to summary |
---|---|
protected LatentTypeWithSimpleName(String name, int modifiers, TypeDescription. Creates a new latent type with a simple name.
|
getSimpleName | back to summary |
---|---|
public String getSimpleName() Overrides net. Implements net. Doc from net. Returns the simple name of this type.
|