|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.ioc.services.ClassFabUtils
public final class ClassFabUtils
Handy method useful when creating new classes using ClassFab
.
Constructor Summary | |
---|---|
ClassFabUtils()
Deprecated. |
Method Summary | |
---|---|
static String |
castReference(String reference,
String desiredType)
Deprecated. Takes a reference and casts it to the desired type. |
static String |
generateClassName(Class interfaceClass)
Deprecated. Returns a class name derived from the provided interfaceClass. |
static String |
generateClassName(String baseName)
Deprecated. Generates a unique class name, which will be in the default package. |
static String |
getPathForClass(Class clazz)
Deprecated. Given a Class instance, convert the name into a path that can be used to locate the underlying class file on the classpath. |
static String |
getPathForClassNamed(String className)
Deprecated. Given a fully qualified class name, converts to a path on the classpath. |
static Class |
getPrimitiveType(Class wrapperType)
Deprecated. Given a wrapper type, determines the corresponding primitive type. |
static Class |
getPrimitiveType(String primitiveTypeName)
Deprecated. |
static String |
getTypeCode(Class type)
Deprecated. Converts a Class to a JVM type code (the way class information is expressed in a class file). |
static String |
getUnwrapMethodName(Class primitiveType)
Deprecated. Given a primitive type, finds the unwrap method of the corresponding wrapper type. |
static Class |
getWrapperType(Class type)
Deprecated. Returns the wrapper type for an input type; for most types, this is the type. |
static boolean |
isPrimitiveType(String typeName)
Deprecated. Given a type name, determines if that is the name of a primitive type. |
static boolean |
isToString(Method method)
Deprecated. Returns true if the method is the standard toString() method. |
static String |
nextUID()
Deprecated. |
static File |
toFileFromFileProtocolURL(URL url)
Deprecated. Converts a URL with protocol "file" to a File instance. |
static String |
toJavaClassName(Class inputClass)
Deprecated. Javassist needs the class name to be as it appears in source code, even for arrays. |
static String |
toJVMBinaryName(String type)
Deprecated. Translates types from standard Java format to Java VM format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassFabUtils()
Method Detail |
---|
public static String nextUID()
public static String generateClassName(String baseName)
public static String generateClassName(Class interfaceClass)
generateClassName(String)
.
public static String toJavaClassName(Class inputClass)
public static boolean isToString(Method method)
public static Class getPrimitiveType(String primitiveTypeName)
public static String toJVMBinaryName(String type)
public static Class getPrimitiveType(Class wrapperType)
public static Class getWrapperType(Class type)
type
- type to check
public static String castReference(String reference, String desiredType)
reference
- to be castdesiredType
- desired object or primitive type
public static String getUnwrapMethodName(Class primitiveType)
primitiveType
-
public static boolean isPrimitiveType(String typeName)
public static String getTypeCode(Class type)
public static String getPathForClass(Class clazz)
public static String getPathForClassNamed(String className)
public static File toFileFromFileProtocolURL(URL url)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |