|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 java.lang.String |
castReference(java.lang.String reference,
java.lang.String desiredType)
Deprecated. Takes a reference and casts it to the desired type. |
static java.lang.String |
generateClassName(java.lang.Class interfaceClass)
Deprecated. Returns a class name derived from the provided interfaceClass. |
static java.lang.String |
generateClassName(java.lang.String baseName)
Deprecated. Generates a unique class name, which will be in the default package. |
static java.lang.String |
getPathForClass(java.lang.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 java.lang.String |
getPathForClassNamed(java.lang.String className)
Deprecated. Given a fully qualified class name, converts to a path on the classpath. |
static java.lang.Class |
getPrimitiveType(java.lang.Class wrapperType)
Deprecated. Given a wrapper type, determines the corresponding primitive type. |
static java.lang.Class |
getPrimitiveType(java.lang.String primitiveTypeName)
Deprecated. |
static java.lang.String |
getTypeCode(java.lang.Class type)
Deprecated. Converts a Class to a JVM type code (the way class information is expressed in a class file). |
static java.lang.String |
getUnwrapMethodName(java.lang.Class primitiveType)
Deprecated. Given a primitive type, finds the unwrap method of the corresponding wrapper type. |
static java.lang.Class |
getWrapperType(java.lang.Class type)
Deprecated. Returns the wrapper type for an input type; for most types, this is the type. |
static boolean |
isPrimitiveType(java.lang.String typeName)
Deprecated. Given a type name, determines if that is the name of a primitive type. |
static boolean |
isToString(java.lang.reflect.Method method)
Deprecated. Returns true if the method is the standard toString() method. |
static java.lang.String |
nextUID()
Deprecated. |
static java.io.File |
toFileFromFileProtocolURL(java.net.URL url)
Deprecated. Converts a URL with protocol "file" to a File instance. |
static java.lang.String |
toJavaClassName(java.lang.Class inputClass)
Deprecated. Javassist needs the class name to be as it appears in source code, even for arrays. |
static java.lang.String |
toJVMBinaryName(java.lang.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 java.lang.String nextUID()
public static java.lang.String generateClassName(java.lang.String baseName)
public static java.lang.String generateClassName(java.lang.Class interfaceClass)
generateClassName(String)
.
public static java.lang.String toJavaClassName(java.lang.Class inputClass)
public static boolean isToString(java.lang.reflect.Method method)
public static java.lang.Class getPrimitiveType(java.lang.String primitiveTypeName)
public static java.lang.String toJVMBinaryName(java.lang.String type)
public static java.lang.Class getPrimitiveType(java.lang.Class wrapperType)
public static java.lang.Class getWrapperType(java.lang.Class type)
type
- type to check
public static java.lang.String castReference(java.lang.String reference, java.lang.String desiredType)
reference
- to be castdesiredType
- desired object or primitive type
public static java.lang.String getUnwrapMethodName(java.lang.Class primitiveType)
primitiveType
-
public static boolean isPrimitiveType(java.lang.String typeName)
public static java.lang.String getTypeCode(java.lang.Class type)
public static java.lang.String getPathForClass(java.lang.Class clazz)
public static java.lang.String getPathForClassNamed(java.lang.String className)
public static java.io.File toFileFromFileProtocolURL(java.net.URL url)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |