public enum GenericDeclarationScope extends java.lang.Enum<GenericDeclarationScope>
| Enum Constant and Description |
|---|
CLASS
Generic declared on class:
Some<T>. |
CONSTRUCTOR
Generic declared on constructor:
<T> Some(T arg). |
METHOD
Generic declared on method:
<T> T get(). |
| Modifier and Type | Method and Description |
|---|---|
static GenericDeclarationScope |
from(java.lang.reflect.GenericDeclaration source)
Note that currently all possible scopes are covered.
|
boolean |
isCompatible(GenericDeclarationScope scope)
Generics visibility compatibility.
|
static GenericDeclarationScope |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GenericDeclarationScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GenericDeclarationScope CLASS
Some<T>.public static final GenericDeclarationScope METHOD
<T> T get().public static final GenericDeclarationScope CONSTRUCTOR
<T> Some(T arg).public static GenericDeclarationScope[] values()
for (GenericDeclarationScope c : GenericDeclarationScope.values()) System.out.println(c);
public static GenericDeclarationScope valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isCompatible(GenericDeclarationScope scope)
scope - scope to compare visibilitypublic static GenericDeclarationScope from(java.lang.reflect.GenericDeclaration source)
source - declaration source