java.lang.Object
org.glassfish.rmic.tools.java.Package
This class is used to represent the classes in a package.
WARNING: The contents of this source file are not part of any
supported API. Code that depends on them does so at its own risk:
they are subject to change or removal without notice.
-
Constructor Summary
ConstructorsConstructorDescriptionPackage(ClassPath binaryPath, Identifier pkg) Create a package given a source path, binary path, and package name. -
Method Summary
Modifier and TypeMethodDescriptionbooleanclassExists(Identifier className) Check if a class is defined in this package.booleanexists()Check if the package existsgetBinaryFile(Identifier className) Get the .class file of a classgetSourceFile(String fileName) getSourceFile(Identifier className) Get the .java file of a classtoString()
-
Constructor Details
-
Package
Create a package given a source path, binary path, and package name.
-
-
Method Details
-
classExists
Check if a class is defined in this package. (If it is an inner class name, it is assumed to exist only if its binary file exists. This is somewhat pessimistic.) -
exists
public boolean exists()Check if the package exists -
getBinaryFile
Get the .class file of a class -
getSourceFile
Get the .java file of a class -
getSourceFile
-
toString
-