org.eclipse.jdt.internal.compiler.env
Interface IDependent

All Known Subinterfaces:
IBinaryType, ICompilationUnit, IGenericType, ISourceType
All Known Implementing Classes:
AssistCompilationUnit, BasicCompilationUnit, BinaryTypeBinding, CaptureBinding, ClassFileReader, ClassFileWorkingCopy, CodeSnippetSkeleton, CompilationUnit, CompilationUnit, CompilationUnit, HierarchyBinaryType, HierarchyType, LocalTypeBinding, MemberTypeBinding, MissingTypeBinding, NestedTypeBinding, ParameterizedTypeBinding, PossibleMatch, ProblemReferenceBinding, RawTypeBinding, ReferenceBinding, ResourceCompilationUnit, SourceFile, SourceTypeBinding, SourceTypeElementInfo, TypeVariableBinding, UnresolvedReferenceBinding, WildcardBinding

public interface IDependent

This represents the target file of a type dependency. All implementors of this interface are containers for types or types themselves which must be able to identify their source file name when file dependencies are collected.


Field Summary
static char JAR_FILE_ENTRY_SEPARATOR
           
 
Method Summary
 char[] getFileName()
          Answer the file name which defines the type.
 

Field Detail

JAR_FILE_ENTRY_SEPARATOR

static final char JAR_FILE_ENTRY_SEPARATOR
See Also:
Constant Field Values
Method Detail

getFileName

char[] getFileName()
Answer the file name which defines the type. The path part (optional) must be separated from the actual file proper name by a separator suitable for the type (java.io.File.separator for example), e.g. "c:\\source\\com\\p\\X.java" or "/com/p/Y.java". The path to the zip or jar file (optional) must be separated from the actual path part by JAR_FILE_ENTRY_SEPARATOR, e.g. "c:\\lib\\some.jar|/com/p/X.class" or "/lib/some.zip|/com/q/Y.class". The proper file name includes the suffix extension (e.g. ".java") e.g. "c:/org/eclipse/jdt/internal/compileri/env/IDependent.java" Return null if no file defines the type.