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
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package org.eclipse.jdt.internal.compiler.env;
14 * This represents the target file of a type dependency.
16 * All implementors of this interface are containers for types or types
17 * themselves which must be able to identify their source file name
18 * when file dependencies are collected.
20 public interface IDependent {
21 char JAR_FILE_ENTRY_SEPARATOR = '|';
23 * Answer the file name which defines the type.
25 * The path part (optional) must be separated from the actual
26 * file proper name by a separator suitable for the type (java.io.File.separator for example),
28 * "c:\\source\\com\\p\\X.java" or
31 * The path to the zip or jar file (optional) must be separated
32 * from the actual path part by JAR_FILE_ENTRY_SEPARATOR,
34 * "c:\\lib\\some.jar|/com/p/X.class" or
35 * "/lib/some.zip|/com/q/Y.class".
37 * The proper file name includes the suffix extension (e.g. ".java")
38 * e.g. "c:/org/eclipse/jdt/internal/compileri/env/IDependent.java"
40 * Return null if no file defines the type.