Klasse SourceFile
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.builder.SourceFile
- Alle implementierten Schnittstellen:
ICompilationUnit,IDependent
-
Feldübersicht
FelderVon Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.internal.compiler.env.IDependent
JAR_FILE_ENTRY_SEPARATOR -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungSourceFile(org.eclipse.core.resources.IFile resource, ClasspathMultiDirectory sourceLocation) SourceFile(org.eclipse.core.resources.IFile resource, ClasspathMultiDirectory sourceLocation, boolean updateClassFile) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanchar[]Answer the contents of the compilation unit.getExternalAnnotationPath(String qualifiedTypeName) Answers a path for external annotations that has been configured for the providing classpath entry, ornull.char[]Answer the file name which defines the type.char[]Answer the name of the top level public type.char[]Returns the name of the module to which this compilation unit is associated.char[][]Answer the name of the package according to the directory structure or null if package consistency checks should be ignored.inthashCode()booleanAnswer if optional problems should be ignored for this compilation unit.toString()Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.env.ICompilationUnit
getDestinationPath, module
-
Felddetails
-
resource
public org.eclipse.core.resources.IFile resource
-
-
Konstruktordetails
-
SourceFile
public SourceFile(org.eclipse.core.resources.IFile resource, ClasspathMultiDirectory sourceLocation) -
SourceFile
public SourceFile(org.eclipse.core.resources.IFile resource, ClasspathMultiDirectory sourceLocation, boolean updateClassFile)
-
-
Methodendetails
-
equals
-
getContents
public char[] getContents()Beschreibung aus Schnittstelle kopiert:ICompilationUnitAnswer the contents of the compilation unit. In normal use, the contents are requested twice. Once during the initial lite parsing step, then again for the more detailed parsing step. Implementors must never return null - return an empty char[] instead, CharOperation.NO_CHAR being the candidate of choice.- Angegeben von:
getContentsin SchnittstelleICompilationUnit
-
getFileName
public char[] getFileName()Beschreibung aus Schnittstelle kopiert:IDependentAnswer 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.- Angegeben von:
getFileNamein SchnittstelleIDependent- Siehe auch:
-
getMainTypeName
public char[] getMainTypeName()Beschreibung aus Schnittstelle kopiert:ICompilationUnitAnswer the name of the top level public type. For example, {Hashtable}.- Angegeben von:
getMainTypeNamein SchnittstelleICompilationUnit
-
getPackageName
public char[][] getPackageName()Beschreibung aus Schnittstelle kopiert:ICompilationUnitAnswer the name of the package according to the directory structure or null if package consistency checks should be ignored. For example, {java, lang}.- Angegeben von:
getPackageNamein SchnittstelleICompilationUnit
-
hashCode
public int hashCode() -
ignoreOptionalProblems
public boolean ignoreOptionalProblems()Beschreibung aus Schnittstelle kopiert:ICompilationUnitAnswer if optional problems should be ignored for this compilation unit. Implementors should returnfalseif there is no preference.- Angegeben von:
ignoreOptionalProblemsin SchnittstelleICompilationUnit
-
getExternalAnnotationPath
Beschreibung aus Schnittstelle kopiert:ICompilationUnitAnswers a path for external annotations that has been configured for the providing classpath entry, ornull.- Angegeben von:
getExternalAnnotationPathin SchnittstelleICompilationUnit
-
toString
-
getModuleName
public char[] getModuleName()Beschreibung aus Schnittstelle kopiert:ICompilationUnitReturns the name of the module to which this compilation unit is associated. A return value ofnullsignals the unnamed module.- Angegeben von:
getModuleNamein SchnittstelleICompilationUnit- Gibt zurück:
- module name or
nullfor the unnamed module.
-