org.jboss.tools
Class ClassVersionInfo

java.lang.Object
  extended by org.jboss.tools.ClassVersionInfo
All Implemented Interfaces:
Serializable

public class ClassVersionInfo
extends Object
implements Serializable

Encapsulates a class serialVersionUID and codebase.

Version:
$Revision: 81038 $
Author:
Scott.Stark@jboss.org
See Also:
Serialized Form

Constructor Summary
ClassVersionInfo(String name, ClassLoader loader)
           
 
Method Summary
 boolean getHasExplicitSerialVersionUID()
           
 String getName()
           
 long getSerialVersion()
           
static void main(String[] args)
          Usage: ClassVersionInfo class-name Locate the class name on the thread context class loader classpath and print its version info.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassVersionInfo

public ClassVersionInfo(String name,
                        ClassLoader loader)
                 throws ClassNotFoundException
Throws:
ClassNotFoundException
Method Detail

getSerialVersion

public long getSerialVersion()

getHasExplicitSerialVersionUID

public boolean getHasExplicitSerialVersionUID()

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Object

main

public static void main(String[] args)
                 throws Exception
Usage: ClassVersionInfo class-name Locate the class name on the thread context class loader classpath and print its version info.

Parameters:
args - [0] = class-name
Throws:
Exception


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.