APIdia Launch Partner
Top Description Methods
javax.lang.model.element

public Interface AnnotationValue


Represents a value of an annotation interface element. A value is of one of the following types (JLS 9.6.1):
Since
1.6

Method Summary

Modifier and TypeMethod and Description
public <
the return type of the visitor's methods
R
,
the type of the additional parameter to the visitor's methods
P
>
R

Returns:

a visitor-specified result
accept
(AnnotationValueVisitor<R, P>
the visitor operating on this value
v
,
P
additional parameter to the visitor
p
)

Applies a visitor to this value.

public Object

Returns:

the value
getValue
()

Returns the value.

public String

Returns:

a string representation of this value
toString
()

Returns a string representation of this value.

Method Detail

acceptback to summary
public <R, P> R accept(AnnotationValueVisitor<R, P> v, P p)

Applies a visitor to this value.

Parameters
<R>
the return type of the visitor's methods
<P>
the type of the additional parameter to the visitor's methods
v:AnnotationValueVisitor<R, P>

the visitor operating on this value

p:P

additional parameter to the visitor

Returns:R

a visitor-specified result

getValueback to summary
public Object getValue()

Returns the value.

Returns:Object

the value

toStringback to summary
public String toString()

Returns a string representation of this value. This is returned in a form suitable for representing this value in the source code of an annotation.

Returns:String

a string representation of this value