org.codehaus.aspectwerkz.metadata
Class TypeConverter
java.lang.Object
org.codehaus.aspectwerkz.metadata.TypeConverter
- public class TypeConverter
- extends java.lang.Object
Methods to convert Class to Java type names. Handles array types and the constructor "return" type.
- Author:
- Tibor Varga
Method Summary |
static java.lang.String |
convertTypeToJava(java.lang.Class type)
Converts a Class to its Java language declaration equivalent. |
static java.lang.String[] |
convertTypeToJava(java.lang.Class[] types)
Converts an array of Classes to their Java language declaration equivalents. |
static java.lang.String |
convertTypeToJava(com.thoughtworks.qdox.model.Type type)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeConverter
public TypeConverter()
convertTypeToJava
public static java.lang.String[] convertTypeToJava(java.lang.Class[] types)
- Converts an array of Classes to their Java language declaration equivalents.
- Parameters:
types
- is the array of Class
objects.
- Returns:
- an array of Strings representing the given types. For
null
types,
this method returns "void"s.
convertTypeToJava
public static java.lang.String convertTypeToJava(java.lang.Class type)
- Converts a Class to its Java language declaration equivalent.
- Parameters:
type
- is the Class
object.
- Returns:
- a Strings representing the given types. For
null
type,
this method returns "void".
convertTypeToJava
public static java.lang.String convertTypeToJava(com.thoughtworks.qdox.model.Type type)
Copyright (c) 2002-2004 The AspectWerkz Team. All Rights Reserved.