KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > core > dom > IExtendedModifier


1 /*******************************************************************************
2  * Copyright (c) 2004, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.core.dom;
12
13 /**
14  * Common interface for AST nodes that represent modifiers or
15  * annotations.
16  * <pre>
17  * ExtendedModifier:
18  * Modifier
19  * Annotation
20  * </pre>
21  * @since 3.1
22  */

23 public interface IExtendedModifier {
24     
25     /**
26      * Returns whether this extended modifier is a standard modifier.
27      *
28      * @return <code>true</code> if this is a standard modifier
29      * (instance of {@link Modifier}), and <code>false</code> otherwise
30      */

31     public boolean isModifier();
32     
33     /**
34      * Returns whether this extended modifier is an annotation.
35      *
36      * @return <code>true</code> if this is an annotation
37      * (instance of a subclass of {@link Annotation}), and
38      * <code>false</code> otherwise
39      */

40     public boolean isAnnotation();
41 }
42
43
Popular Tags