org.jboss.weld.introspector.jlr
Class WeldParameterImpl<T,X>

java.lang.Object
  extended by org.jboss.weld.introspector.jlr.AbstractWeldAnnotated<T,Object>
      extended by org.jboss.weld.introspector.jlr.WeldParameterImpl<T,X>
Type Parameters:
T -
All Implemented Interfaces:
javax.enterprise.inject.spi.Annotated, javax.enterprise.inject.spi.AnnotatedParameter<X>, WeldAnnotated<T,Object>, WeldParameter<T,X>

public class WeldParameterImpl<T,X>
extends AbstractWeldAnnotated<T,Object>
implements WeldParameter<T,X>

Represents a parameter

This class is immutable and therefore threadsafe

Author:
Pete Muir

Field Summary
 
Fields inherited from interface org.jboss.weld.introspector.WeldAnnotated
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS
 
Constructor Summary
protected WeldParameterImpl(Annotation[] annotations, Class<T> rawType, Type type, LazyValueHolder<Set<Type>> typeClosure, WeldCallable<?,X,?> declaringMember, int position, ClassTransformer classTransformer)
          Constructor
 
Method Summary
 javax.enterprise.inject.spi.AnnotatedCallable<X> getDeclaringCallable()
           
 WeldClass<X> getDeclaringType()
           
 WeldCallable<?,X,?> getDeclaringWeldCallable()
           
 Object getDelegate()
           
 String getName()
          Gets the name of the parameter
 Package getPackage()
           
 int getPosition()
           
 boolean isFinal()
          Indicates if the parameter is final
 boolean isGeneric()
           
 boolean isPackagePrivate()
           
 boolean isPrivate()
           
 boolean isPublic()
          Indicates if this annotated item is public
 boolean isStatic()
          Indicates if the parameter is static
static
<T,X> WeldParameter<T,X>
of(Annotation[] annotations, Class<T> rawType, Type type, WeldCallable<?,X,?> declaringMember, int position, ClassTransformer classTransformer)
           
static
<T,X> WeldParameter<T,X>
of(Set<Annotation> annotations, Class<T> rawType, Type type, WeldCallable<?,X,?> declaringMember, int position, ClassTransformer classTransformer)
           
 String toString()
          Gets a string representation of the parameter
 
Methods inherited from class org.jboss.weld.introspector.jlr.AbstractWeldAnnotated
addMetaAnnotations, addMetaAnnotations, buildAnnotationMap, buildAnnotationMap, getActualTypeArguments, getAnnotation, getAnnotations, getBaseType, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, getTypeClosure, isAnnotationPresent, isParameterizedType, isPrimitive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.weld.introspector.WeldAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, isParameterizedType, isPrimitive
 
Methods inherited from interface javax.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
 

Constructor Detail

WeldParameterImpl

protected WeldParameterImpl(Annotation[] annotations,
                            Class<T> rawType,
                            Type type,
                            LazyValueHolder<Set<Type>> typeClosure,
                            WeldCallable<?,X,?> declaringMember,
                            int position,
                            ClassTransformer classTransformer)
Constructor

Parameters:
annotations - The annotations array
type - The type of the parameter
Method Detail

of

public static <T,X> WeldParameter<T,X> of(Annotation[] annotations,
                                          Class<T> rawType,
                                          Type type,
                                          WeldCallable<?,X,?> declaringMember,
                                          int position,
                                          ClassTransformer classTransformer)

of

public static <T,X> WeldParameter<T,X> of(Set<Annotation> annotations,
                                          Class<T> rawType,
                                          Type type,
                                          WeldCallable<?,X,?> declaringMember,
                                          int position,
                                          ClassTransformer classTransformer)

isFinal

public boolean isFinal()
Indicates if the parameter is final

Specified by:
isFinal in interface WeldAnnotated<T,Object>
Returns:
True if final, false otherwise
See Also:
WeldAnnotated.isFinal()

isStatic

public boolean isStatic()
Indicates if the parameter is static

Specified by:
isStatic in interface WeldAnnotated<T,Object>
Returns:
True if static, false otherwise
See Also:
WeldAnnotated.isStatic()

isPublic

public boolean isPublic()
Description copied from interface: WeldAnnotated
Indicates if this annotated item is public

Specified by:
isPublic in interface WeldAnnotated<T,Object>
Returns:
if public, returns true

isPrivate

public boolean isPrivate()
Specified by:
isPrivate in interface WeldAnnotated<T,Object>

isPackagePrivate

public boolean isPackagePrivate()
Specified by:
isPackagePrivate in interface WeldAnnotated<T,Object>

isGeneric

public boolean isGeneric()
Specified by:
isGeneric in interface WeldAnnotated<T,Object>

getPackage

public Package getPackage()
Specified by:
getPackage in interface WeldAnnotated<T,Object>

getName

public String getName()
Gets the name of the parameter

Specified by:
getName in interface WeldAnnotated<T,Object>
Returns:
The name
Throws:
IllegalArgumentException - (not supported)
See Also:
WeldAnnotated.getName()

toString

public String toString()
Gets a string representation of the parameter

Overrides:
toString in class Object
Returns:
A string representation

getDeclaringCallable

public javax.enterprise.inject.spi.AnnotatedCallable<X> getDeclaringCallable()
Specified by:
getDeclaringCallable in interface javax.enterprise.inject.spi.AnnotatedParameter<X>

getDeclaringWeldCallable

public WeldCallable<?,X,?> getDeclaringWeldCallable()
Specified by:
getDeclaringWeldCallable in interface WeldParameter<T,X>

getPosition

public int getPosition()
Specified by:
getPosition in interface javax.enterprise.inject.spi.AnnotatedParameter<X>

getDelegate

public Object getDelegate()
Specified by:
getDelegate in class AbstractWeldAnnotated<T,Object>

getDeclaringType

public WeldClass<X> getDeclaringType()
Specified by:
getDeclaringType in interface WeldParameter<T,X>


Copyright © 2013 Seam Framework. All Rights Reserved.