|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.language.reflection.FieldSignature
public class FieldSignature
A field descriptor represents the type of a class, instance, or local variable. It is a series of characters generated by the grammar described at The Java Virtual Machine Specification .
(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 Summary | |
---|---|
FieldSignature(Class clazz)
constructs a new FieldSignature |
|
FieldSignature(String value)
constructs a new FieldSignature |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FieldSignature(String value)
value
- the value of the descriptorpublic FieldSignature(Class clazz)
clazz
- The classMethod Detail |
---|
public 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 represent
public static final String toDescriptor(Class clazz)
clazz
- the clazz to represent
public static final Class toClass(String descriptor) throws ClassNotFoundException
descriptor
- the descriptor
ClassNotFoundException
- on failure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |