Package net.jangaroo.jooc.input
Class PathInputSource
- java.lang.Object
-
- net.jangaroo.jooc.input.DirectoryInputSource
-
- net.jangaroo.jooc.input.PathInputSource
-
- All Implemented Interfaces:
InputSource
public class PathInputSource extends DirectoryInputSource
-
-
Constructor Summary
Constructors Constructor Description PathInputSource(String name, List<InputSource> entries, boolean inSourcePath)PathInputSource(String name, List<InputSource> entries, boolean inSourcePath, boolean inCompilePath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PathInputSourcecreateCompilePathAwareClassPath(List<File> classPath, String[] rootDirs, String extNamespace, List<File> compilePath)booleanequals(Object o)static PathInputSourcefromFiles(List<File> files, String[] rootDirs, boolean inSourcePath)static PathInputSourcefromFiles(List<File> files, String[] rootDirs, boolean inSourcePath, String extNamespace)InputSourcegetChild(String path)List<InputSource>getChildren(String path)chargetFileSeparatorChar()StringgetName()The file name, i.e.StringgetPath()StringgetRelativePath()inthashCode()List<InputSource>list()StringtoString()-
Methods inherited from class net.jangaroo.jooc.input.DirectoryInputSource
close, getExtNamespace, getInputStream, getParent, isDirectory, isInCompilePath, isInSourcePath
-
-
-
-
Constructor Detail
-
PathInputSource
public PathInputSource(String name, List<InputSource> entries, boolean inSourcePath, boolean inCompilePath)
-
PathInputSource
public PathInputSource(String name, List<InputSource> entries, boolean inSourcePath)
-
-
Method Detail
-
fromFiles
public static PathInputSource fromFiles(List<File> files, String[] rootDirs, boolean inSourcePath) throws IOException
- Throws:
IOException
-
createCompilePathAwareClassPath
public static PathInputSource createCompilePathAwareClassPath(List<File> classPath, String[] rootDirs, String extNamespace, List<File> compilePath) throws IOException
- Throws:
IOException
-
fromFiles
public static PathInputSource fromFiles(List<File> files, String[] rootDirs, boolean inSourcePath, String extNamespace) throws IOException
- Throws:
IOException
-
getName
public String getName()
Description copied from interface:InputSourceThe file name, i.e. test.as- Returns:
- the file name
-
getPath
public String getPath()
-
getRelativePath
public String getRelativePath()
-
list
public List<InputSource> list()
-
getChild
public InputSource getChild(String path)
-
getChildren
public List<InputSource> getChildren(String path)
-
getFileSeparatorChar
public char getFileSeparatorChar()
-
-