Package gw.internal.gosu.parser
Class FileSystemGosuClassRepository.ClassFileInfo
- java.lang.Object
-
- gw.internal.gosu.parser.FileSystemGosuClassRepository.ClassFileInfo
-
- All Implemented Interfaces:
IFileSystemGosuClassRepository.IClassFileInfo
- Enclosing class:
- FileSystemGosuClassRepository
public static class FileSystemGosuClassRepository.ClassFileInfo extends java.lang.Object implements IFileSystemGosuClassRepository.IClassFileInfo
-
-
Field Summary
Fields Modifier and Type Field Description private ClassType_classTypeprivate java.lang.ref.SoftReference<java.lang.String>_contentprivate IFileSystemGosuClassRepository.ClassPathEntry_entryprivate IFile_fileprivate java.lang.String_fileTypeprivate java.util.List<java.lang.String>_innerClassPartsprivate boolean_isTestClass
-
Constructor Summary
Constructors Constructor Description ClassFileInfo(IFileSystemGosuClassRepository.ClassPathEntry entry, IFile file, boolean isTestClass)ClassFileInfo(ISourceFileHandle outerSfh, ClassType classType, java.lang.String fileType, java.util.List<java.lang.String> innerClassParts, boolean isTestClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.RunnablecallClose(java.io.Closeable c)intgetClassPathLength()java.lang.StringgetContent()IFileSystemGosuClassRepository.ClassPathEntrygetEntry()IFilegetFile()java.lang.StringgetFileName()java.lang.StringgetFilePath()java.lang.StringgetNonCanonicalFileName()IDirectorygetParentFile()java.io.ReadergetReader()ISourceFileHandlegetSourceFileHandle()booleanhasInnerClass()voidstopCachingContent()java.lang.StringtoString()
-
-
-
Field Detail
-
_entry
private IFileSystemGosuClassRepository.ClassPathEntry _entry
-
_classType
private ClassType _classType
-
_fileType
private java.lang.String _fileType
-
_innerClassParts
private java.util.List<java.lang.String> _innerClassParts
-
_isTestClass
private boolean _isTestClass
-
_content
private java.lang.ref.SoftReference<java.lang.String> _content
-
_file
private IFile _file
-
-
Constructor Detail
-
ClassFileInfo
public ClassFileInfo(IFileSystemGosuClassRepository.ClassPathEntry entry, IFile file, boolean isTestClass)
-
ClassFileInfo
public ClassFileInfo(ISourceFileHandle outerSfh, ClassType classType, java.lang.String fileType, java.util.List<java.lang.String> innerClassParts, boolean isTestClass)
-
-
Method Detail
-
getFile
public IFile getFile()
- Specified by:
getFilein interfaceIFileSystemGosuClassRepository.IClassFileInfo
-
hasInnerClass
public boolean hasInnerClass()
- Specified by:
hasInnerClassin interfaceIFileSystemGosuClassRepository.IClassFileInfo
-
getSourceFileHandle
public ISourceFileHandle getSourceFileHandle()
- Specified by:
getSourceFileHandlein interfaceIFileSystemGosuClassRepository.IClassFileInfo
-
getEntry
public IFileSystemGosuClassRepository.ClassPathEntry getEntry()
- Specified by:
getEntryin interfaceIFileSystemGosuClassRepository.IClassFileInfo
-
getParentFile
public IDirectory getParentFile()
- Specified by:
getParentFilein interfaceIFileSystemGosuClassRepository.IClassFileInfo
-
getReader
public java.io.Reader getReader()
- Specified by:
getReaderin interfaceIFileSystemGosuClassRepository.IClassFileInfo
-
getFileName
public java.lang.String getFileName()
- Specified by:
getFileNamein interfaceIFileSystemGosuClassRepository.IClassFileInfo
-
getNonCanonicalFileName
public java.lang.String getNonCanonicalFileName()
- Specified by:
getNonCanonicalFileNamein interfaceIFileSystemGosuClassRepository.IClassFileInfo
-
getFilePath
public java.lang.String getFilePath()
- Specified by:
getFilePathin interfaceIFileSystemGosuClassRepository.IClassFileInfo
-
getClassPathLength
public int getClassPathLength()
- Specified by:
getClassPathLengthin interfaceIFileSystemGosuClassRepository.IClassFileInfo
-
getContent
public java.lang.String getContent()
- Specified by:
getContentin interfaceIFileSystemGosuClassRepository.IClassFileInfo
-
stopCachingContent
public void stopCachingContent()
- Specified by:
stopCachingContentin interfaceIFileSystemGosuClassRepository.IClassFileInfo
-
callClose
private static java.lang.Runnable callClose(java.io.Closeable c)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-