0N/A/*
553N/A * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
553N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
553N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
553N/A * or visit www.oracle.com if you need additional information or have any
553N/A * questions.
0N/A */
0N/A
0N/Apackage javax.lang.model.element;
0N/A
0N/A
0N/Aimport java.util.List;
0N/Aimport javax.lang.model.type.*;
0N/A
0N/A/**
0N/A * Represents a value of an annotation type element.
0N/A * A value is of one of the following types:
0N/A * <ul><li> a wrapper class (such as {@link Integer}) for a primitive type
0N/A * <li> {@code String}
0N/A * <li> {@code TypeMirror}
0N/A * <li> {@code VariableElement} (representing an enum constant)
0N/A * <li> {@code AnnotationMirror}
0N/A * <li> {@code List<? extends AnnotationValue>}
0N/A * (representing the elements, in declared order, if the value is an array)
0N/A * </ul>
0N/A *
0N/A * @author Joseph D. Darcy
0N/A * @author Scott Seligman
0N/A * @author Peter von der Ah&eacute;
0N/A * @since 1.6
0N/A */
0N/Apublic interface AnnotationValue {
0N/A
0N/A /**
0N/A * Returns the value.
0N/A *
0N/A * @return the value
0N/A */
0N/A Object getValue();
0N/A
0N/A /**
0N/A * Returns a string representation of this value.
0N/A * This is returned in a form suitable for representing this value
0N/A * in the source code of an annotation.
0N/A *
0N/A * @return a string representation of this value
0N/A */
0N/A String toString();
0N/A
0N/A /**
0N/A * Applies a visitor to this value.
0N/A *
0N/A * @param <R> the return type of the visitor's methods
0N/A * @param <P> the type of the additional parameter to the visitor's methods
0N/A * @param v the visitor operating on this value
0N/A * @param p additional parameter to the visitor
0N/A * @return a visitor-specified result
0N/A */
0N/A <R, P> R accept(AnnotationValueVisitor<R, P> v, P p);
0N/A}