Class BytecodeVersion
- java.lang.Object
-
- org.jetbrains.java.decompiler.code.BytecodeVersion
-
- All Implemented Interfaces:
java.lang.Comparable<BytecodeVersion>
public final class BytecodeVersion extends java.lang.Object implements java.lang.Comparable<BytecodeVersion>
-
-
Field Summary
Fields Modifier and Type Field Description intmajorstatic intMAJOR_1_0_2static intMAJOR_1_2static intMAJOR_1_3static intMAJOR_1_4static intMAJOR_10static intMAJOR_11static intMAJOR_12static intMAJOR_13static intMAJOR_14static intMAJOR_15static intMAJOR_16static intMAJOR_17static intMAJOR_5static intMAJOR_6static intMAJOR_7static intMAJOR_8static intMAJOR_9intminorstatic intPREVIEW
-
Constructor Summary
Constructors Constructor Description BytecodeVersion(int major, int minor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(BytecodeVersion o)booleanequals(java.lang.Object o)booleanhas14ClassReferences()booleanhasEnums()inthashCode()booleanhasIfPatternMatching()booleanhasIndyStringConcat()booleanhasInvokeDynamic()booleanhasJsr()booleanhasLambdas()booleanhasLocalEnumsAndInterfaces()booleanhasNewTryWithResources()booleanhasOverride()booleanhasSealedClasses()booleanhasSwitchExpressions()booleanhasSwitchPatternMatch()booleanpredatesJava()
-
-
-
Field Detail
-
major
public final int major
-
minor
public final int minor
-
PREVIEW
public static final int PREVIEW
- See Also:
- Constant Field Values
-
MAJOR_1_0_2
public static final int MAJOR_1_0_2
- See Also:
- Constant Field Values
-
MAJOR_1_2
public static final int MAJOR_1_2
- See Also:
- Constant Field Values
-
MAJOR_1_3
public static final int MAJOR_1_3
- See Also:
- Constant Field Values
-
MAJOR_1_4
public static final int MAJOR_1_4
- See Also:
- Constant Field Values
-
MAJOR_5
public static final int MAJOR_5
- See Also:
- Constant Field Values
-
MAJOR_6
public static final int MAJOR_6
- See Also:
- Constant Field Values
-
MAJOR_7
public static final int MAJOR_7
- See Also:
- Constant Field Values
-
MAJOR_8
public static final int MAJOR_8
- See Also:
- Constant Field Values
-
MAJOR_9
public static final int MAJOR_9
- See Also:
- Constant Field Values
-
MAJOR_10
public static final int MAJOR_10
- See Also:
- Constant Field Values
-
MAJOR_11
public static final int MAJOR_11
- See Also:
- Constant Field Values
-
MAJOR_12
public static final int MAJOR_12
- See Also:
- Constant Field Values
-
MAJOR_13
public static final int MAJOR_13
- See Also:
- Constant Field Values
-
MAJOR_14
public static final int MAJOR_14
- See Also:
- Constant Field Values
-
MAJOR_15
public static final int MAJOR_15
- See Also:
- Constant Field Values
-
MAJOR_16
public static final int MAJOR_16
- See Also:
- Constant Field Values
-
MAJOR_17
public static final int MAJOR_17
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasEnums
public boolean hasEnums()
-
hasInvokeDynamic
public boolean hasInvokeDynamic()
-
hasLambdas
public boolean hasLambdas()
-
hasIndyStringConcat
public boolean hasIndyStringConcat()
-
hasOverride
public boolean hasOverride()
-
hasJsr
public boolean hasJsr()
-
hasIfPatternMatching
public boolean hasIfPatternMatching()
-
hasSwitchExpressions
public boolean hasSwitchExpressions()
-
hasSwitchPatternMatch
public boolean hasSwitchPatternMatch()
-
hasSealedClasses
public boolean hasSealedClasses()
-
hasLocalEnumsAndInterfaces
public boolean hasLocalEnumsAndInterfaces()
-
has14ClassReferences
public boolean has14ClassReferences()
-
hasNewTryWithResources
public boolean hasNewTryWithResources()
-
predatesJava
public boolean predatesJava()
-
compareTo
public int compareTo(BytecodeVersion o)
- Specified by:
compareToin interfacejava.lang.Comparable<BytecodeVersion>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-