| java.lang.Object org.apache.tapestry.services.TransformUtils
TransformUtils | final public class TransformUtils (Code) | | Support code for generating code (used when transforming component classes).
|
Inner Class :static class PrimitiveTypeInfo | |
getDefaultValue | public static String getDefaultValue(String type)(Code) | | Returns the default value for a type. This is the string "null" for most types, or a literal
value for primtive types.
|
getUnwrapperMethodName | public static String getUnwrapperMethodName(String type)(Code) | | For primitive types, returns the method on the wrapper type that converts back to
the primitive.
Parameters: type - the primitive type the method of the corresponding wrapper type, or null if type is not a primitive type |
getWrapperType | public static Class getWrapperType(Class type)(Code) | | Returns the wrapper type for a given input type. For primitive types, returns the wrapper
type. For other types, returns the type itself.
Parameters: type - primitive or object type |
getWrapperTypeName | public static String getWrapperTypeName(String type)(Code) | | Returns the name of wrapper type for a given input type. For primitive types, returns the
wrapper type. For other types, returns the input type name.
Parameters: type - primitive type name, or fully qualified class name |
isPrimitive | public static boolean isPrimitive(String type)(Code) | | Returns true if the specified type is a primitive type.
|
|
|