Class SyntheticAnnotationValue
java.lang.Object
org.microbean.construct.element.SyntheticAnnotationValue
- All Implemented Interfaces:
Constable, AnnotationValue
An experimental
AnnotationValue implementation that is partially or wholly synthetic.- Author:
- Laird Nelson
-
Constructor Summary
ConstructorsConstructorDescriptionSyntheticAnnotationValue(Object value) Creates a newSyntheticAnnotationValue. -
Method Summary
Modifier and TypeMethodDescriptionfinal <R,P> R accept(AnnotationValueVisitor<R, P> v, P p) final Optional<? extends ConstantDesc> final booleanfinal ObjectgetValue()final inthashCode()static final SyntheticAnnotationValuefinal StringtoString()
-
Constructor Details
-
SyntheticAnnotationValue
Creates a newSyntheticAnnotationValue.- Parameters:
value- a value legal for anAnnotationValue; must not benull- Throws:
NullPointerException- ifvalueisnullIllegalArgumentException- ifvalueis not legal for anAnnotationValue- See Also:
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceAnnotationValue
-
describeConstable
- Specified by:
describeConstablein interfaceConstable
-
equals
-
getValue
- Specified by:
getValuein interfaceAnnotationValue
-
hashCode
-
toString
-
of
Returns a non-null, determinateSyntheticAnnotationValuethat represents the suppliedvalue.If
valueis aSyntheticAnnotationValue, then it is returned unchanged.- Parameters:
value- a value legal for anAnnotationValue; must not benull- Returns:
- a non-
null, determinateSyntheticAnnotationValue - Throws:
NullPointerException- ifvalueisnullIllegalArgumentException- ifvalueis not legal for anAnnotationValue- See Also:
-