Package org.sonar.java.model
Class AnnotationValueImpl
- java.lang.Object
-
- org.sonar.java.model.AnnotationValueImpl
-
- All Implemented Interfaces:
SymbolMetadata.AnnotationValue
public class AnnotationValueImpl extends Object implements SymbolMetadata.AnnotationValue
-
-
Constructor Summary
Constructors Constructor Description AnnotationValueImpl(String name, Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Name of the annotation property.Object
value()
Stored value of the annotation property.
-
-
-
Method Detail
-
value
public Object value()
Description copied from interface:SymbolMetadata.AnnotationValue
Stored value of the annotation property.- Specified by:
value
in interfaceSymbolMetadata.AnnotationValue
- Returns:
- the value of the annotation that has been found.
-
name
public String name()
Description copied from interface:SymbolMetadata.AnnotationValue
Name of the annotation property.- Specified by:
name
in interfaceSymbolMetadata.AnnotationValue
- Returns:
- the name of the property.
-
-