public class ConstructorParameter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ConstructorParameter.FakeAnnotatedElement |
Constructor and Description |
---|
ConstructorParameter(Annotation[] annotations,
Type parameterType,
Type genericType,
boolean isPrimitive,
int parameterIndex,
org.apache.sling.models.spi.injectorspecific.StaticInjectAnnotationProcessorFactory[] processorFactories,
org.apache.sling.models.annotations.DefaultInjectionStrategy defaultInjectionStrategy) |
Modifier and Type | Method and Description |
---|---|
AnnotatedElement |
getAnnotatedElement() |
Object |
getDefaultValue() |
Type |
getGenericType() |
String |
getName() |
int |
getParameterIndex() |
Type |
getParameterType() |
String |
getSource() |
Type |
getType() |
String |
getVia() |
Class<? extends org.apache.sling.models.annotations.ViaProviderType> |
getViaProviderType() |
boolean |
hasDefaultValue() |
boolean |
isOptional(org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor annotationProcessor) |
boolean |
isPrimitive() |
String |
toString() |
public ConstructorParameter(Annotation[] annotations, Type parameterType, Type genericType, boolean isPrimitive, int parameterIndex, org.apache.sling.models.spi.injectorspecific.StaticInjectAnnotationProcessorFactory[] processorFactories, org.apache.sling.models.annotations.DefaultInjectionStrategy defaultInjectionStrategy)
public Type getGenericType()
public Type getParameterType()
public boolean isPrimitive()
public int getParameterIndex()
public final AnnotatedElement getAnnotatedElement()
getAnnotatedElement
in interface InjectableElement
public final Type getType()
getType
in interface InjectableElement
public final String getName()
getName
in interface InjectableElement
public String getSource()
getSource
in interface InjectableElement
public String getVia()
getVia
in interface InjectableElement
public Class<? extends org.apache.sling.models.annotations.ViaProviderType> getViaProviderType()
getViaProviderType
in interface InjectableElement
public boolean hasDefaultValue()
hasDefaultValue
in interface InjectableElement
public Object getDefaultValue()
getDefaultValue
in interface InjectableElement
public boolean isOptional(org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor annotationProcessor)
isOptional
in interface InjectableElement
true
if the element is optional otherwise false
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.