SoftNet-Consult Java Utility Library

com.softnetConsult.utils.reflect
Class ClassVersionInfo

java.lang.Object
  extended by com.softnetConsult.utils.reflect.ClassVersionInfo

public final class ClassVersionInfo
extends java.lang.Object

Objects of this class encapsulate information about a physical Java class file including the major class file version, the minor class file version, and the minimum version of the Java virtual machine required to execute a class file with the specified major and minor version.

This product includes software developed by the SoftNet-Consult Java Utility Library project and its contributors.
(http://java-tools.sourceforge.net)
Copyright (c) 2007-2008 SoftNet-Consult.
Copyright (c) 2007-2008 G. Paperin.
All rights reserved.

File: ClassVersionInfo.java
Library API version: "2.02"
Java compliance version: "1.5"

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following terms and conditions are met:

1. Redistributions of source code must retain the above acknowledgement of the SoftNet-Consult Java Utility Library project, the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above acknowledgement of the SoftNet-Consult Java Utility Library project, the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software or any derived software must display the following acknowledgement:
This product includes software developed by the SoftNet-Consult Java Utility Library project and its contributors.

THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS, CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version:
"2.02"
Author:
Greg Paperin (http://www.paperin.org)

Field Summary
 int majorClassVersion
          The major version number of a Java class binary.
 int minorClassVersion
          The minor version number of a Java class binary.
 java.lang.String reqJavaVersion
          The minimum version of the Java virtual machine required to execure a Java class binary with the major and minor versions specified by majorClassVersion and minorClassVersion respectively.
 
Constructor Summary
ClassVersionInfo(int majorClassVer, int minorClassVer, java.lang.String reqJavaVer)
          Constructs a new immutable ClassVersionInfo with the specified major and minor version numbers and the minumum required JVM version number.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

majorClassVersion

public final int majorClassVersion
The major version number of a Java class binary.


minorClassVersion

public final int minorClassVersion
The minor version number of a Java class binary.


reqJavaVersion

public final java.lang.String reqJavaVersion
The minimum version of the Java virtual machine required to execure a Java class binary with the major and minor versions specified by majorClassVersion and minorClassVersion respectively.

Constructor Detail

ClassVersionInfo

ClassVersionInfo(int majorClassVer,
                 int minorClassVer,
                 java.lang.String reqJavaVer)
Constructs a new immutable ClassVersionInfo with the specified major and minor version numbers and the minumum required JVM version number.

Parameters:
majorClassVer - Major version number of a Java class binary.
minorClassVer - Minor version number of a Java class binary.
reqJavaVer - Minimum required Java version to run the specified class binary version (no consistency check is done).

SoftNet-Consult Java Utility Library is a member of SourceForge.net