Package jnr.ffi.util
Class AnnotationProperty
- java.lang.Object
-
- jnr.ffi.util.AnnotationProperty
-
final class AnnotationProperty extends java.lang.Object
Describes an annotation property.- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description AnnotationProperty(java.lang.String name, java.lang.Class<?> type)
Creates a new annotation property instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getName()
Returns the property name.java.lang.Class<?>
getType()
Returns the property type.java.lang.Object
getValue()
Returns the property value.protected int
getValueHashCode()
Calculates this annotation value hash code.int
hashCode()
void
setValue(java.lang.Object value)
Sets the property value.java.lang.String
toString()
protected java.lang.String
valueToString()
Calculates thetoString
of the property value.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the property name.- Returns:
- the property name.
-
getType
public java.lang.Class<?> getType()
Returns the property type.- Returns:
- the property type.
-
getValue
public java.lang.Object getValue()
Returns the property value.- Returns:
- the property value.
-
setValue
public void setValue(java.lang.Object value)
Sets the property value.- Parameters:
value
- the property value.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getValueHashCode
protected int getValueHashCode()
Calculates this annotation value hash code.- Returns:
- this annotation value hash code.
-
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
-
valueToString
protected java.lang.String valueToString()
Calculates thetoString
of the property value.- Returns:
- the
toString
of the property value.
-
-