| Modifier and Type | Class and Description |
|---|---|
| public static interface | TypeDescriptor.
the class implementing TypeDescriptor.OfField F extends TypeDescriptor.An entity that has a field type descriptor. |
| public static interface | TypeDescriptor.
the type representing field type descriptors F extends TypeDescriptor.the class implementing TypeDescriptor.OfMethod M extends TypeDescriptor.An entity that has a method type descriptor
Method descriptors conforming to JVMS 4.3.3 can be described
nominally via |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the descriptor string for thisTypeDescriptor objectReturns the descriptor string for this |
| descriptorString | back to summary |
|---|---|
| public String descriptorString() Returns the descriptor string for this
| |
Class::describeConstable;
otherwise they cannot be described nominally.
| Modifier and Type | Method and Description |
|---|---|
| public F | Returns: the descriptor for the array typeReturn a descriptor for the array type whose component type is described by this descriptor |
| public F | Returns: the component type, ornull if this field descriptor does
not describe an array typeIf this field descriptor describes an array type, return
a descriptor for its component type, otherwise return |
| public boolean | Returns: whether this field descriptor describes an array typeDoes this field descriptor describe an array type? |
| public boolean | Returns: whether this field descriptor describes a primitive typeDoes this field descriptor describe a primitive type (including void.) |
| arrayType | back to summary |
|---|---|
| public F arrayType() Return a descriptor for the array type whose component type is described by this descriptor
| |
| componentType | back to summary |
|---|---|
| public F componentType() If this field descriptor describes an array type, return
a descriptor for its component type, otherwise return
| |
| isArray | back to summary |
|---|---|
| public boolean isArray() Does this field descriptor describe an array type?
| |
| isPrimitive | back to summary |
|---|---|
| public boolean isPrimitive() Does this field descriptor describe a primitive type (including void.)
| |
MethodType::describeConstable;
otherwise they cannot be described nominally.
| Modifier and Type | Method and Description |
|---|---|
| public M | Returns: the new method descriptorthe index of the parameter to change index, F a field descriptor describing the new parameter type paramType)Return a method descriptor that is identical to this one, except that a single parameter type has been changed to the specified type. |
| public M | Returns: the new method descriptora field descriptor for the new return type newReturn)Return a method descriptor that is identical to this one, except that the return type has been changed to the specified type |
| public M | Returns: the new method descriptorthe index of the first parameter to remove start, int the index after the last parameter to remove end)Return a method descriptor that is identical to this one, except that a range of parameter types have been removed. |
| public M | Returns: the new method descriptorthe index at which to insert the first inserted parameter pos, F... field descriptors describing the new parameter types
to insert paramTypes)Return a method descriptor that is identical to this one, except that a range of additional parameter types have been inserted. |
| public F[] | Returns: field descriptors for the parameter typesReturn an array of field descriptors for the parameter types of the method type described by this descriptor |
| public int | |
| public List | Returns: field descriptors for the parameter typesReturn an immutable list of field descriptors for the parameter types of the method type described by this descriptor |
| public F | Returns: a field descriptor for the requested parameter typethe index of the parameter i)Return a field descriptor describing the requested parameter of the method type described by this descriptor |
| public F | Returns: a field descriptor for the return typeReturn a field descriptor describing the return type of the method type described by this descriptor |
| changeParameterType | back to summary |
|---|---|
| public M changeParameterType(int index, F paramType) Return a method descriptor that is identical to this one, except that a single parameter type has been changed to the specified type.
| |
| changeReturnType | back to summary |
|---|---|
| public M changeReturnType(F newReturn) Return a method descriptor that is identical to this one, except that the return type has been changed to the specified type
| |
| dropParameterTypes | back to summary |
|---|---|
| public M dropParameterTypes(int start, int end) Return a method descriptor that is identical to this one, except that a range of parameter types have been removed.
| |
| insertParameterTypes | back to summary |
|---|---|
| public M insertParameterTypes(int pos, F... paramTypes) Return a method descriptor that is identical to this one, except that a range of additional parameter types have been inserted.
| |
| parameterArray | back to summary |
|---|---|
| public F[] parameterArray() Return an array of field descriptors for the parameter types of the method type described by this descriptor
| |
| parameterCount | back to summary |
|---|---|
| public int parameterCount() Return the number of parameters in the method type
| |
| parameterList | back to summary |
|---|---|
| public List Return an immutable list of field descriptors for the parameter types of the method type described by this descriptor
| |
| parameterType | back to summary |
|---|---|
| public F parameterType(int i) Return a field descriptor describing the requested parameter of the method type described by this descriptor
| |
| returnType | back to summary |
|---|---|
| public F returnType() Return a field descriptor describing the return type of the method type described by this descriptor
| |