Top Description Fields Constructors Methods
javax.lang.model.element

public Class UnknownAnnotationValueException

extends UnknownEntityException
Class Inheritance
Imports
javax.lang.model.UnknownEntityException

Indicates that an unknown kind of annotation value was encountered. This can occur if the language evolves and new kinds of annotation values can be stored in an annotation. May be thrown by an annotation value visitor to indicate that the visitor was created for a prior version of the language.
Since
1.6
See Also
AnnotationValueVisitor#visitUnknown

Field Summary

Modifier and TypeField and Description
private transient AnnotationValue
private transient Object
private static final long

Constructor Summary

AccessConstructor and Description
public
UnknownAnnotationValueException(AnnotationValue
the unknown annotation value, may be null
av
,
Object
an additional parameter, may be null
p
)

Creates a new UnknownAnnotationValueException.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the additional argument, or null if unavailable
getArgument
()

Returns the additional argument.

public AnnotationValue

Returns:

the unknown element, or null if unavailable
getUnknownAnnotationValue
()

Returns the unknown annotation value.

Field Detail

avback to summary
private transient AnnotationValue av
parameterback to summary
private transient Object parameter
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.lang.model.UnknownEntityException.serialVersionUID.

Constructor Detail

UnknownAnnotationValueExceptionback to summary
public UnknownAnnotationValueException(AnnotationValue av, Object p)

Creates a new UnknownAnnotationValueException. The p parameter may be used to pass in an additional argument with information about the context in which the unknown annotation value was encountered; for example, the visit methods of AnnotationValueVisitor may pass in their additional parameter.

Parameters
av:AnnotationValue

the unknown annotation value, may be null

p:Object

an additional parameter, may be null

Method Detail

getArgumentback to summary
public Object getArgument()

Returns the additional argument.

Returns:Object

the additional argument, or null if unavailable

getUnknownAnnotationValueback to summary
public AnnotationValue getUnknownAnnotationValue()

Returns the unknown annotation value. The value may be unavailable if this exception has been serialized and then read back in.

Returns:AnnotationValue

the unknown element, or null if unavailable