| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static final HashSet | |
| private static final char[] | |
| private static final String | |
| private static final HashMap |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | addAllGenericInterfaces(Class<?> rawClass, Type type, Set<Type> closures)
Gets all the interfaces on this particular class (but not any superclasses of this class). |
| private static void | |
| public static void | |
| public static boolean | Returns: true if the candidate set contains the entire required setThe candidate annotations candidateAnnotations, final Set<Annotation> The required annotations requiredAnnotations)This is used to check on the annotation set. |
| public static <T> T | |
| public static MethodWrapper | Returns: A method wrapper that has a proper equals/hashCodeThe non-null method to wrap wrapMe)Creates a method wrapper for the given method |
| public static Map | Returns: A deep copy of the metadataThe guy to copy (if null, null will be returned) copyMe)This method does a deep copy of the incoming meta-data, (which basically means we will also make copies of the value list) |
| private static String | |
| private static ParameterizedType | |
| private static Type | fixGenericArrayTypeVariables(GenericArrayType type, Map<String, Type> typeArgumentsMap)
Replace any TypeVariables in the given type's arguments with the actual argument types. |
| private static Type | fixTypeVariables(ParameterizedType type, Map<String, Type> typeArgumentsMap)
Replace any TypeVariables in the given type's arguments with the actual argument types. |
| public static Set | Returns: The type itself and the contracts it implementsThe outer type to analyze type, Class<? extends Annotation> The annotation to use to discover the advertised types markerAnnotation)Returns the set of types this class advertises |
| public static Set | Returns: The type itself and the contracts it implementsthe object we are analyzing t, Class<? extends Annotation> The annotation to use to discover the advertised types markerAnnotation)Returns the set of types this class advertises |
| private static void | getAllContractsFromInterfaces(Class<?> clazzOrInterface, Class<? extends Annotation> markerAnnotation, Set<Type> addToMe, Set<Class<?>> alreadyHandled)
|
| public static Set | |
| private static Class | |
| public static Set | Returns: The type itself and the contracts it implementsthe class we are analyzing clazz, final Class<? extends Annotation> The annotation to use to discover annotated types markerAnnotation)Returns the set of types this class advertises |
| private static ClassLoader | Returns: The current context class loaderGets the current context class loader with privs |
| public static Type | Returns: If this is a class, Object.class. If this is a parameterized type, the type of the first actual argumentThe type to find the first type argument on type)Gets the first type argument if this is a parameterized type, otherwise it returns Object.class |
| public static String | |
| private static String | |
| public static String | Returns: null if no Named was found, or the appropriate name otherwiseThe set of qualifiers that may or may not have Named in it qualifiers, AnnotatedElement The parent element for which we are searching parent)Gets the name from the &46;Named qualifier in this set of qualifiers |
| private static Type[] | getNewTypeArguments(final ParameterizedType type, final Map<String, Type> typeArgumentsMap)
Get a new array of type arguments for the given ParameterizedType, replacing any TypeVariables with actual types. |
| private static Type | getNewTypeArrayArguments(final GenericArrayType gat, final Map<String, Type> typeArgumentsMap)
Get a new Type for a GenericArrayType, replacing any TypeVariables with actual types. |
| public static Set | Returns: The set of qualifiers. Will not return null but may return an empty setThe thing to analyze annotatedGuy)Gets all the qualifier annotations from the object A strange behavior of this method is that if the annotatedGuy is a field and that field has the Named annotation on it with no value, then that Named annotation will NOT be added to the return list. |
| public static Set | Returns: The set of qualifiers. Will not return null but may return an empty setThe class to analyze clazz)Gets all the qualifiers from the object |
| public static Set | Returns: The set of qualifiers. Will not return null but may return an empty setThe object to analyze t)Gets all the qualifiers from the object |
| public static Class | Returns: The raw class associated with this typeThe type to find the raw class on type)Given the type parameter gets the raw type represented by the type, or null if this has no associated raw class |
| public static Annotation | Returns: The class of the scope annotationThe class to analyze clazz)Gets the scope annotation from the object |
| public static Annotation | Returns: The class of the scope annotationThe object to analyze t)Gets the scope annotation from the object |
| public static Annotation | Returns: The class of the scope annotationThe class to analyze clazz, Annotation The scope that should be returned if no scope could be found annoDefault)Gets the scope annotation from the object |
| public static Annotation | Returns: The class of the scope annotationThe object to analyze t, Annotation The default that this should have if no scope could be found annoDefault)Gets the scope annotation from the object |
| private static Map | getTypeArguments(Class<?> rawClass, ParameterizedType type)
Gets a mapping of type variable names of the raw class to type arguments of the parameterized type. |
| private static Set | Returns: The non-null (and never empty) set of classes that this class can be assigned toThe full type closure of the given class
with nothing omitted (normal case). May not be null ofType)Returns the type closure of the given class |
| public static Set | Returns: The type closure restricted to the contractsThe type to check ofType, Set<String> The contracts this type is allowed to handle contracts)Returns the type closure, as restricted by the classes listed in the set of contracts implemented |
| private static Set | |
| private static int | Returns: The number of characters read until the end of the setThe line to read asChars, int startIndex, Collection<String> The set to add the strings to addToMe)Writes a set in a way that can be read from an input stream as well. |
| public static Object | Returns: The return from the invocationthe object on which to invoke it o, Method the method to invoke m, Object[] The arguments to invoke (may not be null) args, boolean true if the ContextClassLoader shoult remain null with this call neutralCCL)This version of invoke is CCL neutral (it will return with the same CCL as what it went in with) |
| public static boolean | Returns: true if this is an annotationThe annotation to check anno)Returns true if the given annotation is a qualifier |
| private static boolean | |
| private static boolean | |
| public static boolean | |
| public static boolean | |
| public static Object | Returns: The return from the invocationthe constructor to call c, Object[] The arguments to invoke (may not be null) args, boolean true if the context class loader should remain null through this call neutralCCL)This version of invoke is CCL neutral (it will return with the same CCL as what it went in with) |
| public static void | |
| private static int | |
| public static void | |
| public static void | readSet(String
The line to read line, Collection<String> The set to add the strings to addToMe)Writes a set in a way that can be read from an input stream as well. |
| private static void | recursiveAddContractsFromInterfacesToMap(final Class<T>[] interfaces, final Set<String> contractSet, final Class<? extends Annotation> markerAnnotation)
|
| public static boolean | |
| public static boolean | |
| public static Type | Returns: The resolved field type by way of its subclasses. Will not return null, but may return the original fields generic typeThe instantiation class. Must not be null topclass, Field The non-null field whose type to resolve field)Resolves the generic type of a field given the actual class being instantiated |
| public static Type | Returns: null if userType is not related, or the given hardened parameterized type from the knownType listThe user type to replace. May not be null userType, ParameterizedType The user defined known final type of the knownDeclaringClass. May not be null knownType, Class<?> The declaringClass for which knownType is the resolved ParameterizedType for it.
May not be null knownDeclaringClass)If you have a class that declares type variables (knownDeclaringClass) and the type the user has told us it should be (knownType) then return the replaced type for the given userType. |
| public static Type | Returns: The resolved type by way of its subclasses. Will not return null but may return lookingForType if it could not be further resolvedThe instantiation class. Must not be null topclass, Type The type to resolve. Must not be null lookingForType, Class<?> The class of the entity declaring the lookingForType. Must not be null declaringClass)Resolves the generic type of a type and declaring class given the actual class being instantiated |
| private static void | setAccessible(final AccessibleObject
The object to change ao)Sets this accessible object to be accessible using the permissions of the hk2-locator bundle (which will need the required grant) |
| private static void | setContextClassLoader(final Thread
The thread on which to set the classloader t, final ClassLoader The classloader to set l)Sets the context classloader under the privileged of this class |
| public static void | |
| public static Class | Returns: The translated type or the type itselfThe type to convert type)Converts the type to its java form, or returns the original |
| private static Map | |
| private static String | |
| public static String | Returns: The metadata in an externalizable formatThe metadata to externalize metadata)Used to write the metadata out |
| public static String | |
| public static String |