|
ref_send API 2.17 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ref_send.type.Typedef
public final class Typedef
Type definition manipulation.
| Method Summary | ||
|---|---|---|
static java.lang.reflect.Type |
bound(java.lang.reflect.Type parameter,
java.lang.reflect.Type declared)
Determine the upper bound on a type parameter. |
|
static java.lang.Class<?> |
raw(java.lang.reflect.Type type)
Determine the corresponding raw type. |
|
static java.lang.reflect.Type |
value(java.lang.reflect.TypeVariable<?> p,
java.lang.reflect.Type a)
Gets the value of a type variable. |
|
static
|
var(java.lang.Class<T> declaration,
java.lang.String name)
Gets the named type variable. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> java.lang.reflect.TypeVariable<java.lang.Class<T>> var(java.lang.Class<T> declaration,
java.lang.String name)
declaration - generic declarationname - variable name
java.lang.NullPointerException - no matching variable found
public static java.lang.reflect.Type value(java.lang.reflect.TypeVariable<?> p,
java.lang.reflect.Type a)
p - type variablea - instantiated type
null if p is not from
a or one of its super typespublic static java.lang.Class<?> raw(java.lang.reflect.Type type)
type - generic type
public static java.lang.reflect.Type bound(java.lang.reflect.Type parameter,
java.lang.reflect.Type declared)
parameter - generic parameter typedeclared - generic class type
|
ref_send API 2.17 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.