Package io.github.fastclasspathscanner
Class AnnotationInfo
- java.lang.Object
-
- io.github.fastclasspathscanner.AnnotationInfo
-
- All Implemented Interfaces:
Comparable<AnnotationInfo>
public class AnnotationInfo extends Object implements Comparable<AnnotationInfo>
Holds metadata about a specific annotation instance on a class, method or field.
-
-
Field Summary
Fields Modifier and Type Field Description protected ScanResultscanResult
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AnnotationInfo o)booleanequals(Object obj)ClassInfogetClassInfo()Get theClassInfoobject for the annotation class of this annotation.protected StringgetClassName()Return the name of the annotation class, forgetClassInfo().List<AnnotationParameterValue>getDefaultParameterValues()Returns the list of default parameter values for this annotation, or the empty list if none.StringgetName()Get the name of the annotation.List<AnnotationParameterValue>getParameterValues()Get the parameter values of this annotation, including any default parameter values inherited from the annotation class definition, or the empty list if none.inthashCode()booleanisInherited()Returns true if this annotation is meta-annotated withInherited.StringtoString()voidtoString(StringBuilder buf)Render as a string, into a StringBuilder buffer.
-
-
-
Field Detail
-
scanResult
protected transient ScanResult scanResult
-
-
Method Detail
-
getName
public String getName()
Get the name of the annotation.- Returns:
- The annotation name.
-
getClassName
protected String getClassName()
Return the name of the annotation class, forgetClassInfo().
-
getClassInfo
public ClassInfo getClassInfo()
Get theClassInfoobject for the annotation class of this annotation.- Returns:
- The
ClassInfoobject for this annotation.
-
isInherited
public boolean isInherited()
Returns true if this annotation is meta-annotated withInherited.
-
getDefaultParameterValues
public List<AnnotationParameterValue> getDefaultParameterValues()
Returns the list of default parameter values for this annotation, or the empty list if none.
-
getParameterValues
public List<AnnotationParameterValue> getParameterValues()
Get the parameter values of this annotation, including any default parameter values inherited from the annotation class definition, or the empty list if none.- Returns:
- The annotation parameter values, including any default parameter values, or the empty list if none.
-
compareTo
public int compareTo(AnnotationInfo o)
- Specified by:
compareToin interfaceComparable<AnnotationInfo>
-
toString
public void toString(StringBuilder buf)
Render as a string, into a StringBuilder buffer.- Parameters:
buf- The buffer.
-
-