Package org.robovm.rt.annotation
Class Annotation
java.lang.Object
org.robovm.rt.annotation.Annotation
- All Implemented Interfaces:
Annotation
public abstract class Annotation extends Object implements Annotation
Abstract base class of annotation implementation classes generated by the
compiler
AnnotationImplPlugin.-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedAnnotation(Class<? extends Annotation> klass) -
Method Summary
Modifier and Type Method Description Class<? extends Annotation>annotationType()Returns the type of this annotation.protected static Booleanbox(boolean v)protected static Bytebox(byte v)protected static Characterbox(char v)protected static Doublebox(double v)protected static Floatbox(float v)protected static Integerbox(int v)protected static Longbox(long v)protected static Shortbox(short v)booleanequals(Object o)Compares this instance with the specified object and indicates if they are equal.protected abstract booleanfastEquals(Object that)protected ObjectgetDefaultValue(String memberName)protected inthash(Object value, String memberName)protected booleanmemberEquals(Object ours, Object theirs)protected abstract voidmembersToString(StringBuilder sb)protected voidmemberToString(StringBuilder sb, Object value, String memberName, boolean first)protected abstract booleanslowEquals(Object that)StringtoString()Returns a string containing a concise, human-readable description of this object.protected static booleanunbox(Boolean v)protected static byteunbox(Byte v)protected static charunbox(Character v)protected static doubleunbox(Double v)protected static floatunbox(Float v)protected static intunbox(Integer v)protected static longunbox(Long v)protected static shortunbox(Short v)protected Objectvalidate(Object value, String memberName)Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.annotation.Annotation
hashCode
-
Field Details
-
NO_VALUE
Singleton representing missing element value.
-
-
Constructor Details
-
Annotation
-
-
Method Details
-
annotationType
Description copied from interface:AnnotationReturns the type of this annotation.- Specified by:
annotationTypein interfaceAnnotation- Returns:
- A
Classinstance representing the annotation type.
-
validate
-
getDefaultValue
-
hash
-
equals
Description copied from class:ObjectCompares this instance with the specified object and indicates if they are equal. In order to be equal,omust represent the same object as this instance using a class-specific comparison. The general contract is that this comparison should be reflexive, symmetric, and transitive. Also, no object reference other than null is equal to null.The default implementation returns
trueonly ifthis == o. See Writing a correctequalsmethod if you intend implementing your ownequalsmethod.The general contract for the
equalsandObject.hashCode()methods is that ifequalsreturnstruefor any two objects, thenhashCode()must return the same value for these objects. This means that subclasses ofObjectusually override either both methods or neither of them.- Specified by:
equalsin interfaceAnnotation- Overrides:
equalsin classObject- Parameters:
o- the object to compare this instance with.- Returns:
trueif the specified object is equal to thisObject;falseotherwise.- See Also:
Object.hashCode()
-
fastEquals
-
slowEquals
-
memberEquals
-
toString
Description copied from class:ObjectReturns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toStringmethod if you intend implementing your owntoStringmethod.- Specified by:
toStringin interfaceAnnotation- Overrides:
toStringin classObject- Returns:
- a printable representation of this object.
-
membersToString
-
memberToString
protected final void memberToString(StringBuilder sb, Object value, String memberName, boolean first) -
box
-
box
-
box
-
box
-
box
-
box
-
box
-
box
-
unbox
-
unbox
-
unbox
-
unbox
-
unbox
-
unbox
-
unbox
-
unbox
-