Package soot.JastAddJ
Class FileNamesPart
- java.lang.Object
-
- soot.JastAddJ.PathPart
-
- soot.JastAddJ.FileNamesPart
-
public class FileNamesPart extends PathPart
-
-
Constructor Summary
Constructors Constructor Description FileNamesPart(Program p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompilationUnitaddSourceFile(String name)Add a source file to be parsed.booleanhasPackage(String name)booleanisEmpty()CollectionkeySet()booleanselectCompilationUnit(String canonicalName)-
Methods inherited from class soot.JastAddJ.PathPart
createClassPath, createSourcePath, fileSuffix, getAge, getCompilationUnit, getInputStream, getProgram, setProgram
-
-
-
-
Constructor Detail
-
FileNamesPart
public FileNamesPart(Program p)
-
-
Method Detail
-
hasPackage
public boolean hasPackage(String name)
- Overrides:
hasPackagein classPathPart
-
isEmpty
public boolean isEmpty()
-
keySet
public Collection keySet()
-
selectCompilationUnit
public boolean selectCompilationUnit(String canonicalName) throws IOException
- Overrides:
selectCompilationUnitin classPathPart- Throws:
IOException
-
addSourceFile
public CompilationUnit addSourceFile(String name)
Add a source file to be parsed.- Returns:
- The CompilationUnit representing the source file,
or
nullif no such file exists
-
-