public class FieldSignature extends Object implements Serializable
Copyright (c) 2002-2019 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.
Constructor and Description |
---|
FieldSignature(Class<?> clazz)
constructs a new FieldSignature.
|
FieldSignature(String value)
constructs a new FieldSignature.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getClassValue() |
String |
getStringValue() |
static Class<?> |
toClass(String descriptor)
converts a fieldDescriptor to its class representation
|
static String |
toDescriptor(Class<?> clazz)
converts a field to its descriptor
|
static String |
toDescriptor(Class<?>[] classes)
converts an array of fields to its descriptor
|
String |
toString() |
public FieldSignature(String value)
value
- String; the value of the descriptorpublic FieldSignature(Class<?> clazz)
clazz
- Class<?>; The classpublic String getStringValue()
public Class<?> getClassValue() throws ClassNotFoundException
ClassNotFoundException
- if the class cannot be found.public static final String toDescriptor(Class<?>[] classes)
classes
- Class<?>[]; the classes to representpublic static final String toDescriptor(Class<?> clazz)
clazz
- Class<?>; the clazz to representpublic static final Class<?> toClass(String descriptor) throws ClassNotFoundException
descriptor
- String; the descriptorClassNotFoundException
- on failureCopyright © 2018–2019 Delft University of Technology. All rights reserved.