1 | /******************************************************************************* |
---|---|
2 | * Copyright (c) 2004, 2014 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.dom; |
15 | |
16 | /** |
17 | * Common interface for AST nodes that represent modifiers or |
18 | * annotations. |
19 | * <pre> |
20 | * IExtendedModifier: |
21 | * Modifier |
22 | * Annotation |
23 | * </pre> |
24 | * @since 3.1 |
25 | * @noextend This interface is not intended to be extended by clients. |
26 | * @noimplement This interface is not intended to be implemented by clients. |
27 | */ |
28 | public interface IExtendedModifier { |
29 | |
30 | /** |
31 | * Returns whether this extended modifier is a standard modifier. |
32 | * |
33 | * @return <code>true</code> if this is a standard modifier |
34 | * (instance of {@link Modifier}), and <code>false</code> otherwise |
35 | */ |
36 | public boolean isModifier(); |
37 | |
38 | /** |
39 | * Returns whether this extended modifier is an annotation. |
40 | * |
41 | * @return <code>true</code> if this is an annotation |
42 | * (instance of a subclass of {@link Annotation}), and |
43 | * <code>false</code> otherwise |
44 | */ |
45 | public boolean isAnnotation(); |
46 | } |
47 | |
48 |