Class AnnotationAccess
- java.lang.Object
-
- com.hello2morrow.sonargraph.languageprovider.java.api.model.AnnotationValueAccess
-
- com.hello2morrow.sonargraph.languageprovider.java.api.model.AnnotationAccess
-
- All Implemented Interfaces:
IAnnotationAccess
,IAnnotationValueAccess
public final class AnnotationAccess extends AnnotationValueAccess implements IAnnotationAccess
Access object for type, method or field annotations.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IJavaTypeAccess
getAnnotationClass()
Return the annotation class.int
getLineNumber()
IAnnotationValueAccess
getValue(java.lang.String key)
Get a specific annotation value.-
Methods inherited from class com.hello2morrow.sonargraph.languageprovider.java.api.model.AnnotationValueAccess
getBooleanValue, getClassName, getEnumConstant, getEnumContantName, getEumConstant, getNumericValue, getReferencedClass, getStringValue, getValueList, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.hello2morrow.sonargraph.api.java.IAnnotationValueAccess
getBooleanValue, getClassName, getEnumConstant, getEnumContantName, getEumConstant, getNumericValue, getReferencedClass, getStringValue, getValueList
-
-
-
-
Method Detail
-
getAnnotationClass
public IJavaTypeAccess getAnnotationClass()
Return the annotation class.- Specified by:
getAnnotationClass
in interfaceIAnnotationAccess
- Returns:
- Return the annotation class or null, if it could not be resolved.
-
getValue
public IAnnotationValueAccess getValue(java.lang.String key)
Get a specific annotation value.- Specified by:
getValue
in interfaceIAnnotationAccess
- Parameters:
key
- Name of value (cannot be null or empty).- Returns:
- Associated value or null, if it does not exist.
-
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumber
in interfaceIAnnotationAccess
-
-