org.eclipse.jdt.internal.compiler.env.IBinaryElementValuePair Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ecj Show documentation
Show all versions of ecj Show documentation
Eclipse Compiler for Java(TM)
/*******************************************************************************
* 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:
* [email protected] - 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.
*/
public interface IBinaryElementValuePair {
/** @return the name of the member */
char[] getName();
/**
* 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();
}