Copyright (c) 2005, 2009 BEA Systems, Inc. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-2.0/ SPDX-License-Identifier: EPL-2.0 Contributors: tyeung@bea.com - initial API and implementation
/******************************************************************************* * Copyright (c) 2005, 2009 BEA Systems, Inc. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * tyeung@bea.com - initial API and implementation *******************************************************************************/
package org.eclipse.jdt.internal.compiler.env;
This represents the class file information about a member value pair of an annotation.
/** * This represents the class file information about a member value pair of an annotation. */
public interface IBinaryElementValuePair {
Returns:the name of the member
/** @return the name of the member */
char[] getName();
Return ClassSignature for a Class Class. Return Constant for compile-time constant of primitive type, as well as String literals. Return EnumConstantSignature if value is an enum constant. Return IBinaryAnnotation for annotation type. Return Object[] for array type.
Returns:the value of this member value pair
/** * Return {@link ClassSignature} for a Class {@link java.lang.Class}. * Return {@link org.eclipse.jdt.internal.compiler.impl.Constant} for compile-time constant of primitive type, as well as String literals. * Return {@link EnumConstantSignature} if value is an enum constant. * Return {@link IBinaryAnnotation} for annotation type. * Return {@link Object}[] for array type. * * @return the value of this member value pair */
Object getValue(); }