Class AnnotationMember
- java.lang.Object
-
- it.unive.lisa.program.annotations.AnnotationMember
-
- All Implemented Interfaces:
java.lang.Comparable<AnnotationMember>
public class AnnotationMember extends java.lang.Object implements java.lang.Comparable<AnnotationMember>
A member of an annotation.
-
-
Constructor Summary
Constructors Constructor Description AnnotationMember(java.lang.String id, AnnotationValue value)Builds an annotation member from its identifier and its annotation value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AnnotationMember o)booleanequals(java.lang.Object obj)java.lang.StringgetId()Yields the identifier of this annotation member.AnnotationValuegetValue()Yields the annotation value of this annotation member.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
AnnotationMember
public AnnotationMember(java.lang.String id, AnnotationValue value)Builds an annotation member from its identifier and its annotation value.- Parameters:
id- the identifiervalue- the annotation value
-
-
Method Detail
-
getId
public java.lang.String getId()
Yields the identifier of this annotation member.- Returns:
- the identifier of this annotation member
-
getValue
public AnnotationValue getValue()
Yields the annotation value of this annotation member.- Returns:
- the annotation value of this annotation member
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(AnnotationMember o)
- Specified by:
compareToin interfacejava.lang.Comparable<AnnotationMember>
-
-