Package org.aspectj.apache.bcel
Class Constants.ClassFileVersion
java.lang.Object
org.aspectj.apache.bcel.Constants.ClassFileVersion
- Enclosing interface:
Constants
Carries information about major, minor and preview-minor version byte values found in Java class files for a
specific Java version. You can obtain instances via
of(int)
and of(int, int)
, respectively.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static Constants.ClassFileVersion
of
(int javaMajor) Obtain a class file version info instance for a specific Java versionstatic Constants.ClassFileVersion
of
(int javaMajor, int javaMinor) Obtain a class file version info instance for a specific Java version
-
Field Details
-
MAJOR
public final int MAJOR -
MINOR
public final int MINOR -
PREVIEW_MINOR
public final int PREVIEW_MINOR- See Also:
-
-
Method Details
-
of
Obtain a class file version info instance for a specific Java version- Parameters:
javaMajor
- Java major version; must be >= 2; values 2 to 9 are interpreted as Java versions 1.2 to 1.9- Returns:
- either a cached or a new instance; result is identical to calling
of(javaMajor, 0)
-
of
Obtain a class file version info instance for a specific Java version- Parameters:
javaMajor
- Java major version; must be >= 1; values 2 to 9 are interpreted as Java versions 1.2 to 1.9javaMinor
- Java minor version; is only relevant for Java major 1 and must be in range [1..9]- Returns:
- either a cached or a new instance
-
equals
-
hashCode
public int hashCode()
-