|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem<T,S>
org.jboss.webbeans.introspector.jlr.AbstractAnnotatedMember<T,java.lang.reflect.Constructor<T>>
org.jboss.webbeans.introspector.jlr.AnnotatedConstructorImpl<T>
T
- public class AnnotatedConstructorImpl<T>
Represents an annotated constructor This class is immutable, and therefore threadsafe
Field Summary |
---|
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
---|
MAPPED_METAANNOTATIONS |
Constructor Summary | |
---|---|
protected |
AnnotatedConstructorImpl(java.lang.reflect.Constructor<T> constructor,
AnnotatedType<T> declaringClass)
Constructor Initializes the superclass with the build annotations map |
Method Summary | ||
---|---|---|
boolean |
equals(java.lang.Object other)
The overridden equals operation |
|
java.lang.reflect.Constructor<T> |
getAnnotatedConstructor()
Gets the constructor |
|
java.util.List<AnnotatedParameter<?>> |
getAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Gets parameter abstractions with a given annotation type. |
|
AnnotatedType<T> |
getDeclaringClass()
Gets the declaring class |
|
java.lang.reflect.Constructor<T> |
getDelegate()
Gets the delegate (constructor) |
|
java.util.List<AnnotatedParameter<?>> |
getParameters()
Gets the abstracted parameters If the parameters are null, initalize them first |
|
ConstructorSignature |
getSignature()
|
|
int |
hashCode()
The overridden hashcode Gets the hash code from the delegate |
|
T |
newInstance(java.lang.Object... parameters)
Creates a new instance |
|
static
|
of(java.lang.reflect.Constructor<T> constructor,
AnnotatedType<T> declaringClass)
|
|
java.lang.String |
toString()
Gets a string representation of the constructor |
Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedMember |
---|
getMember, getName, getValue, isFinal, isPublic, isStatic, isTransient |
Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem |
---|
getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindings, getBindingsAsArray, getDeclaredMetaAnnotations, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getRawType, getType, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isParameterizedType, isProxyable |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedMember |
---|
getMember |
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
---|
getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindings, getBindingsAsArray, getDeclaredMetaAnnotations, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getRawType, getType, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isParameterizedType, isProxyable, isPublic, isStatic |
Constructor Detail |
---|
protected AnnotatedConstructorImpl(java.lang.reflect.Constructor<T> constructor, AnnotatedType<T> declaringClass)
constructor
- The constructor methoddeclaringClass
- The declaring classMethod Detail |
---|
public static <T> AnnotatedConstructor<T> of(java.lang.reflect.Constructor<T> constructor, AnnotatedType<T> declaringClass)
public java.lang.reflect.Constructor<T> getAnnotatedConstructor()
public java.lang.reflect.Constructor<T> getDelegate()
getDelegate
in class AbstractAnnotatedItem<T,java.lang.reflect.Constructor<T>>
public java.util.List<AnnotatedParameter<?>> getParameters()
getParameters
in interface AnnotatedConstructor<T>
AnnotatedConstructor.getParameters()
public java.util.List<AnnotatedParameter<?>> getAnnotatedParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
getAnnotatedParameters
in interface AnnotatedConstructor<T>
annotationType
- The annotation type to match
AnnotatedConstructor.getAnnotatedParameters(Class)
public T newInstance(java.lang.Object... parameters) throws java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
newInstance
in interface AnnotatedConstructor<T>
manager
- The Web Beans manager
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalArgumentException
org.jboss.webbeans.introspector.AnnotatedConstructor#newInstance(ManagerImpl)
public boolean equals(java.lang.Object other)
equals
in class AbstractAnnotatedItem<T,java.lang.reflect.Constructor<T>>
other
- The instance to compare to
public int hashCode()
hashCode
in class AbstractAnnotatedItem<T,java.lang.reflect.Constructor<T>>
public AnnotatedType<T> getDeclaringClass()
getDeclaringClass
in interface AnnotatedConstructor<T>
getDeclaringClass
in interface AnnotatedMember<T,java.lang.reflect.Constructor<T>>
public java.lang.String toString()
toString
in class AbstractAnnotatedMember<T,java.lang.reflect.Constructor<T>>
public ConstructorSignature getSignature()
getSignature
in interface AnnotatedConstructor<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |