Package org.apache.openjpa.lib.util
Class JavaVersions
java.lang.Object
org.apache.openjpa.lib.util.JavaVersions
Utilities for dealing with different Java specification versions.
- Author:
- Abe White, Pinaki Poddar
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Java version; one of 2, 3, 4, 5, 6, 7, or later. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>[]
Collects the parameterized type declarations for a given field.static Class<?>[]
getParameterizedTypes
(Method meth) Collects the parameterized return type declarations for a given method.
-
Field Details
-
VERSION
public static final int VERSIONJava version; one of 2, 3, 4, 5, 6, 7, or later.
-
-
Constructor Details
-
JavaVersions
public JavaVersions()
-
-
Method Details
-
getParameterizedTypes
Collects the parameterized type declarations for a given field. -
getParameterizedTypes
Collects the parameterized return type declarations for a given method.
-