FileDocCategorySizeDatePackage
Util.javaAPI DocGlassfish v2 API3542Fri May 04 22:33:24 BST 2007com.sun.enterprise.tools.verifier.apiscan.classfile

Util

public class Util extends Object
author
Sanjeeb.Sahoo@Sun.COM

Fields Summary
private static Logger
logger
private static final String
myClassName
Constructors Summary
Methods Summary
public static java.lang.StringconvertToExternalClassName(java.lang.String internalClsName)

param
internalClsName is the name in internal format
return
the class name in external format, i,e. format used in reflection API (e.g. Class.forName())

 // NOI18N

                                        
         
        return internalClsName.replace('/", '.");
    
public static java.lang.StringconvertToInternalClassName(java.lang.String externalClsName)

param
externalClsName is the name in internal format
return
the class name in internal format, i,e. format used in byte code

        return externalClsName.replace('.", '/");
    
public static booleanisPrimitive(java.lang.String className)

        logger.entering(myClassName, "isPrimitive", new Object[]{className}); // NOI18N
        boolean result = ("B".equals(className) || // NOI18N
                "C".equals(className) || // NOI18N
                "D".equals(className) || // NOI18N
                "F".equals(className) || // NOI18N
                "I".equals(className) || // NOI18N
                "J".equals(className) || // NOI18N
                "S".equals(className) || // NOI18N
                "Z".equals(className)); // NOI18N
        logger.exiting(myClassName, "isPrimitive", result); // NOI18N
        return result;