A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / env / ISourceImport.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.internal.compiler.env;
12
13 public interface ISourceImport {
14
15         /**
16          * Answer the source end position of the import declaration.
17          */
18
19         int getDeclarationSourceEnd();
20
21         /**
22          * Answer the source start position of the import declaration.
23          */
24
25         int getDeclarationSourceStart();
26
27         /**
28          * Answer an int whose bits are set according the access constants defined
29          * by the VM spec. Since Java 1.5, static imports can be defined.
30          */
31         int getModifiers();
32
33         /**
34          * Answer the name of the import. A name is a simple name or a qualified,
35          * dot separated name. For example, Hashtable or java.util.Hashtable.
36          */
37         char[] getName();
38
39         /**
40          * Answer whether the import is on demand or not On demand import names have
41          * no trailing star
42          */
43         boolean onDemand();
44 }