public class Package extends Object
| Constructor and Description |
|---|
Package(ClassPath binaryPath,
Identifier pkg)
Create a package given a source path, binary path, and package
name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
classExists(Identifier className)
Check if a class is defined in this package.
|
boolean |
exists()
Check if the package exists
|
ClassFile |
getBinaryFile(Identifier className)
Get the .class file of a class
|
ClassFile |
getSourceFile(Identifier className)
Get the .java file of a class
|
ClassFile |
getSourceFile(String fileName) |
String |
toString() |
public Package(ClassPath binaryPath, Identifier pkg)
public boolean classExists(Identifier className)
public boolean exists()
public ClassFile getBinaryFile(Identifier className)
public ClassFile getSourceFile(Identifier className)
Copyright © 2017–2021 Eclipse Foundation. All rights reserved.