Makefile fixup
[org.ibex.tool.git] / src / org / eclipse / jdt / 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 org.eclipse.jdt.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  * Answer the source start position of the import declaration.
22  */
23
24 int getDeclarationSourceStart();
25
26 /**
27  * Answer an int whose bits are set according the access constants
28  * defined by the VM spec.
29  * Since Java 1.5, static imports can be defined.
30  */ 
31 int getModifiers();
32
33 /**
34  * Answer the name of the import.
35  * A name is a simple name or a qualified, dot separated name.
36  * For example, Hashtable or java.util.Hashtable.
37  */
38 char[] getName();       
39
40 /**
41  * Answer whether the import is on demand or not
42  * On demand import names have no trailing star
43  */
44 boolean onDemand();
45 }