1 /******************************************************************************* 2 * Copyright (c) 2004, 2009 IBM Corporation and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * IBM Corporation - initial API and implementation 13 *******************************************************************************/ 14 package org.eclipse.jdt.core.util; 15 16 /** 17 * Description of a parameter annotation as described in the JVM specifications 18 * (added in J2SE 1.5). 19 * 20 * This interface may be implemented by clients. 21 * 22 * @since 3.0 23 */ 24 public interface IParameterAnnotation { 25 26 /** 27 * Answer back the number of annotations as described in the JVM specifications. 28 * 29 * @return the number of annotations 30 */ getAnnotationsNumber()31 int getAnnotationsNumber(); 32 33 /** 34 * Answer back the annotations as described in the JVM specifications. 35 * Answers an empty collection if none. 36 * 37 * @return the annotations 38 */ getAnnotations()39 IAnnotation[] getAnnotations(); 40 } 41