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 int
compareTo(AnnotationMember o)
boolean
equals(java.lang.Object obj)
java.lang.String
getId()
Yields the identifier of this annotation member.AnnotationValue
getValue()
Yields the annotation value of this annotation member.int
hashCode()
java.lang.String
toString()
-
-
-
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(AnnotationMember o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<AnnotationMember>
-
-