Class AnnotationImpl
- java.lang.Object
-
- org.jboss.jca.common.annotations.repository.jandex.AnnotationImpl
-
- All Implemented Interfaces:
Annotation
public class AnnotationImpl extends Object implements Annotation
An AnnotationImpl.- Author:
- Stefano Maestri, Jesper Pedersen
-
-
Constructor Summary
Constructors Constructor Description AnnotationImpl(String className, ClassLoader cl, List<String> parameterTypes, String memberName, boolean onMethod, boolean onField, Class<?> annotationClass)Create a new AnnotationImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAnnotation()Get the annotation.StringgetClassName()Get the className.StringgetMemberName()Get the memberName.List<String>getParameterTypes()Get the parameterTypes.booleanisOnField()Get the onField.booleanisOnMethod()Get the onMethod.StringtoString()String representation
-
-
-
Constructor Detail
-
AnnotationImpl
public AnnotationImpl(String className, ClassLoader cl, List<String> parameterTypes, String memberName, boolean onMethod, boolean onField, Class<?> annotationClass)
Create a new AnnotationImpl.- Parameters:
className- classNamecl- classloaderparameterTypes- parameterTypesmemberName- memberNameonMethod- onMethodonField- onFieldannotationClass- annotationClass
-
-
Method Detail
-
getClassName
public String getClassName()
Get the className.- Specified by:
getClassNamein interfaceAnnotation- Returns:
- the className.
-
getAnnotation
public Object getAnnotation()
Get the annotation.- Specified by:
getAnnotationin interfaceAnnotation- Returns:
- the annotation.
-
getParameterTypes
public List<String> getParameterTypes()
Get the parameterTypes.- Specified by:
getParameterTypesin interfaceAnnotation- Returns:
- the parameterTypes.
-
getMemberName
public String getMemberName()
Get the memberName.- Specified by:
getMemberNamein interfaceAnnotation- Returns:
- the memberName.
-
isOnMethod
public boolean isOnMethod()
Get the onMethod.- Specified by:
isOnMethodin interfaceAnnotation- Returns:
- the onMethod.
-
isOnField
public boolean isOnField()
Get the onField.- Specified by:
isOnFieldin interfaceAnnotation- Returns:
- the onField.
-
-