- All Superinterfaces:
ClassElement,ClassfileElement
- All Known Implementing Classes:
ClassfileVersionImpl
Models the classfile version information for a class. Delivered as a
ClassElement when traversing the elements of a ClassModel.-
Method Summary
Modifier and TypeMethodDescriptionintReturns the major classfile version.intReturns the minor classfile version.static ClassfileVersionof(int majorVersion, int minorVersion) Returns aClassfileVersionelement.
-
Method Details
-
majorVersion
int majorVersion()Returns the major classfile version.- Returns:
- the major classfile version
-
minorVersion
int minorVersion()Returns the minor classfile version.- Returns:
- the minor classfile version
-
of
Returns aClassfileVersionelement.- Parameters:
majorVersion- the major classfile versionminorVersion- the minor classfile version- Returns:
- a
ClassfileVersionelement
-