public class FieldSignature extends Object implements Serializable
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl/language
License of use: Lesser
General Public License (LGPL) , no warranty
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
- the value of the descriptorpublic FieldSignature(Class clazz)
clazz
- The classpublic String getStringValue()
public Class getClassValue() throws ClassNotFoundException
ClassNotFoundException
- if the class cannot be found.public String toString()
toString
in class Object
Object.toString()
public static final String toDescriptor(Class[] classes)
classes
- the classes to representpublic static final String toDescriptor(Class clazz)
clazz
- the clazz to representpublic static final Class toClass(String descriptor) throws ClassNotFoundException
descriptor
- the descriptorClassNotFoundException
- on failureCopyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.