public class FieldSignature extends Object implements Serializable
Copyright (c) 2002-2009 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved.
See for project information www.simulation.tudelft.nl.
The DSOL project is distributed under the following BSD-style license:
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
conditions are met:
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 final String getStringValue()
public final Class<?> getClassValue() throws ClassNotFoundException
ClassNotFoundException
- if the class cannot be found.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 © 2015–2019 Delft University of Technology. All rights reserved.