1 23 24 25 package com.sun.enterprise.tools.verifier.apiscan.classfile; 26 27 import java.util.logging.Logger ; 28 29 32 public class Util { 33 34 private static Logger logger = Logger.getLogger("apiscan.classfile"); 36 private static final String myClassName = "Util"; 38 43 public static String convertToExternalClassName(String internalClsName) { 44 return internalClsName.replace('/', '.'); 45 } 46 47 51 public static String convertToInternalClassName(String externalClsName) { 52 return externalClsName.replace('.', '/'); 53 } 54 55 public static boolean isPrimitive(String className) { 56 logger.entering(myClassName, "isPrimitive", new Object []{className}); boolean result = ("B".equals(className) || "C".equals(className) || "D".equals(className) || "F".equals(className) || "I".equals(className) || "J".equals(className) || "S".equals(className) || "Z".equals(className)); logger.exiting(myClassName, "isPrimitive", result); return result; 67 } 68 } 69 | Popular Tags |