Class ConstructorParameter.FakeAnnotatedElement
- java.lang.Object
-
- org.apache.sling.models.impl.model.ConstructorParameter.FakeAnnotatedElement
-
- All Implemented Interfaces:
AnnotatedElement
- Enclosing class:
- ConstructorParameter
public static class ConstructorParameter.FakeAnnotatedElement extends Object implements AnnotatedElement
-
-
Constructor Summary
Constructors Constructor Description FakeAnnotatedElement(Annotation[] annotations, int parameterIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Annotation>
TgetAnnotation(Class<T> paramClass)Annotation[]getAnnotations()Annotation[]getDeclaredAnnotations()intgetParameterIndex()booleanisAnnotationPresent(Class<? extends Annotation> paramClass)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
-
-
-
Constructor Detail
-
FakeAnnotatedElement
public FakeAnnotatedElement(Annotation[] annotations, int parameterIndex)
-
-
Method Detail
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> paramClass)
- Specified by:
isAnnotationPresentin interfaceAnnotatedElement
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> paramClass)
- Specified by:
getAnnotationin interfaceAnnotatedElement
-
getAnnotations
public Annotation[] getAnnotations()
- Specified by:
getAnnotationsin interfaceAnnotatedElement
-
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement
-
getParameterIndex
public int getParameterIndex()
-
-