|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.lib.util.JavaVersions
public class JavaVersions
Utilities for dealing with different Java specification versions.
| Field Summary | |
|---|---|
static int |
VERSION
Java version; one of 2, 3, 4, 5, 6, or 7. |
| Constructor Summary | |
|---|---|
JavaVersions()
|
|
| Method Summary | |
|---|---|
(package private) static Class<?> |
extractClass(Type type)
Extracts the class from the given argument, if possible. |
static Class<?>[] |
getParameterizedTypes(Field f)
Collects the parameterized type declarations for a given field. |
static Class<?>[] |
getParameterizedTypes(Method meth)
Collects the parameterized return type declarations for a given method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int VERSION
| Constructor Detail |
|---|
public JavaVersions()
| Method Detail |
|---|
public static Class<?>[] getParameterizedTypes(Field f)
public static Class<?>[] getParameterizedTypes(Method meth)
static Class<?> extractClass(Type type)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||