Package io.github.fastclasspathscanner
Class AnnotationParameterValue
- java.lang.Object
-
- io.github.fastclasspathscanner.AnnotationParameterValue
-
- All Implemented Interfaces:
Comparable<AnnotationParameterValue>
public class AnnotationParameterValue extends Object implements Comparable<AnnotationParameterValue>
A wrapper used to pair annotation parameter names with annotation parameter values.
-
-
Field Summary
Fields Modifier and Type Field Description protected ScanResult
scanResult
-
Constructor Summary
Constructors Constructor Description AnnotationParameterValue(String name, Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(AnnotationParameterValue o)
boolean
equals(Object obj)
protected ClassInfo
getClassInfo()
protected String
getClassName()
String
getName()
Get the annotation parameter name.Object
getValue()
Get the annotation parameter value.String
toString()
-
-
-
Field Detail
-
scanResult
protected transient ScanResult scanResult
-
-
Method Detail
-
getName
public String getName()
Get the annotation parameter name.- Returns:
- The annotation parameter name.
-
getClassName
protected String getClassName()
-
getClassInfo
protected ClassInfo getClassInfo()
-
getValue
public Object getValue()
Get the annotation parameter value.- Returns:
- The annotation parameter value. May be one of the following types:
- String for string constants
- A wrapper type, e.g. Integer or Character, for primitive-typed constants
Object
[] for array types (and then the array element type may be one of the types in this list)AnnotationEnumValue
, for enum constants (this wraps the enum class and the string name of the constant)AnnotationClassRef
, for Class references within annotations (this wraps the name of the referenced class)AnnotationInfo
, for nested annotations
-
compareTo
public int compareTo(AnnotationParameterValue o)
- Specified by:
compareTo
in interfaceComparable<AnnotationParameterValue>
-
-