Package jnr.ffi.util
Class AnnotationProperty
java.lang.Object
jnr.ffi.util.AnnotationProperty
Describes an annotation property.
- Version:
- $Id$
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationProperty
(String name, Class<?> type) Creates a new annotation property instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
Returns the property name.Class
<?> getType()
Returns the property type.getValue()
Returns the property value.protected int
Calculates this annotation value hash code.int
hashCode()
void
Sets the property value.toString()
protected String
Calculates thetoString
of the property value.
-
Field Details
-
name
The property name. -
type
The property type. -
value
The property value. This field can be mutable.
-
-
Constructor Details
-
AnnotationProperty
Creates a new annotation property instance.- Parameters:
name
- the property name.type
- the property type.
-
-
Method Details
-
getName
Returns the property name.- Returns:
- the property name.
-
getType
Returns the property type.- Returns:
- the property type.
-
getValue
Returns the property value.- Returns:
- the property value.
-
setValue
Sets the property value.- Parameters:
value
- the property value.
-
hashCode
public int hashCode() -
getValueHashCode
protected int getValueHashCode()Calculates this annotation value hash code.- Returns:
- this annotation value hash code.
-
equals
-
toString
-
valueToString
Calculates thetoString
of the property value.- Returns:
- the
toString
of the property value.
-