com.sun.enterprise.tools.verifier.apiscan.classfile
Class Util

java.lang.Object
  extended by com.sun.enterprise.tools.verifier.apiscan.classfile.Util

public class Util
extends Object

Author:
Sanjeeb.Sahoo@Sun.COM

Constructor Summary
Util()
           
 
Method Summary
static String convertToExternalClassName(String internalClsName)
           
static String convertToInternalClassName(String externalClsName)
           
static String getPackageName(String className)
           
static boolean isPrimitive(String className)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

convertToExternalClassName

public static String convertToExternalClassName(String internalClsName)
Parameters:
internalClsName - is the name in internal format
Returns:
the class name in external format, i,e. format used in reflection API (e.g. Class.forName())

convertToInternalClassName

public static String convertToInternalClassName(String externalClsName)
Parameters:
externalClsName - is the name in internal format
Returns:
the class name in internal format, i,e. format used in byte code

isPrimitive

public static boolean isPrimitive(String className)

getPackageName

public static String getPackageName(String className)
Parameters:
className - name of class in external format (i.e. java.util.Set).
Returns:
package name in dotted format, e.g. java.lang for java.lang.void


Copyright © 2013 Oracle Corporation. All Rights Reserved.