Package aQute.bnd.osgi
Enum Clazz.JAVA
- java.lang.Object
-
- java.lang.Enum<Clazz.JAVA>
-
- aQute.bnd.osgi.Clazz.JAVA
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Clazz.JAVA>
- Enclosing class:
- Clazz
public static enum Clazz.JAVA extends java.lang.Enum<Clazz.JAVA>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEE()
java.lang.String
getFilter()
static Clazz.JAVA
getJava(int major, int minor)
int
getMajor()
java.util.Map<java.lang.String,java.util.Set<java.lang.String>>
getProfiles()
boolean
hasAnnotations()
boolean
hasEnums()
boolean
hasGenerics()
static Clazz.JAVA
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Clazz.JAVA[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JDK1_1
public static final Clazz.JAVA JDK1_1
-
JDK1_2
public static final Clazz.JAVA JDK1_2
-
JDK1_3
public static final Clazz.JAVA JDK1_3
-
JDK1_4
public static final Clazz.JAVA JDK1_4
-
J2SE5
public static final Clazz.JAVA J2SE5
-
J2SE6
public static final Clazz.JAVA J2SE6
-
OpenJDK7
public static final Clazz.JAVA OpenJDK7
-
OpenJDK8
public static final Clazz.JAVA OpenJDK8
-
OpenJDK9
public static final Clazz.JAVA OpenJDK9
-
UNKNOWN
public static final Clazz.JAVA UNKNOWN
-
-
Method Detail
-
values
public static Clazz.JAVA[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Clazz.JAVA c : Clazz.JAVA.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Clazz.JAVA valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getMajor
public int getMajor()
-
hasAnnotations
public boolean hasAnnotations()
-
hasGenerics
public boolean hasGenerics()
-
hasEnums
public boolean hasEnums()
-
getJava
public static Clazz.JAVA getJava(int major, int minor)
-
getEE
public java.lang.String getEE()
-
getFilter
public java.lang.String getFilter()
-
getProfiles
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getProfiles() throws java.io.IOException
- Throws:
java.io.IOException
-
-