Package org.apache.maven.jxr.pacman
Class JavaFileImpl
java.lang.Object
org.apache.maven.jxr.pacman.JavaFile
org.apache.maven.jxr.pacman.JavaFileImpl
PacMan implementation of a JavaFile. This will parse out the file and
determine package, class, and imports
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJavaFileImpl(Path path, String encoding) Constructor of a new object that points to a given file. -
Method Summary
Modifier and TypeMethodDescriptionprivate Readerprivate StreamTokenizergetTokenizer(Reader reader) Gets aStreamTokenizerfor this file.private voidparse()Opens up the file and try to determine package, class and import statements.private voidparseRecursive(String nestedPrefix, StreamTokenizer stok) Methods inherited from class org.apache.maven.jxr.pacman.JavaFile
addClassType, addImportType, getClassType, getClassTypes, getEncoding, getFilename, getFilenameWithoutPathOrExtension, getImportTypes, getPackageType, getPath, setClassType, setPackageType
-
Field Details
-
classTypes
-
-
Constructor Details
-
JavaFileImpl
Constructor of a new object that points to a given file.- Parameters:
path- path of the fileencoding- encoding of the file- Throws:
IOException- on parsing failure
-
-
Method Details
-
parse
Opens up the file and try to determine package, class and import statements.- Throws:
IOException
-
parseRecursive
- Throws:
IOException
-
getTokenizer
Gets aStreamTokenizerfor this file. -
getReader
- Throws:
IOException
-