ca.ubc.cs.elide.nodes
Class PackageNode
java.lang.Object
|
+--ca.ubc.cs.elide.nodes.ParseNode
|
+--ca.ubc.cs.elide.nodes.ChildBearingNode
|
+--ca.ubc.cs.elide.nodes.PackageNode
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class PackageNode
- extends ChildBearingNode
A PackageNode
provides information on and access to a single Java package.
- See Also:
- Serialized Form
Method Summary |
ClassNode |
getClass(java.lang.String name)
Returns a ClassNode object representing a class contained by this package, given its name. |
ClassNode[] |
getClasses()
Returns an array of ClassNode objects representing the classes contained by this package. |
ClassNode |
getDeclaringClass()
Throws a RuntimeException if called - included for compatibility. |
PackageNode |
getPackage()
Returns this PackageNode object (included for compatibility). |
Methods inherited from class ca.ubc.cs.elide.nodes.ParseNode |
findType, get, getComment, getName, getParent, getRoot, put, registerType, setComment, setName, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PackageNode
public PackageNode()
PackageNode
public PackageNode(java.lang.String name)
getClasses
public ClassNode[] getClasses()
- Returns an array of
ClassNode
objects representing the classes contained by this package.
getClass
public ClassNode getClass(java.lang.String name)
- Returns a
ClassNode
object representing a class contained by this package, given its name.
getDeclaringClass
public ClassNode getDeclaringClass()
- Throws a RuntimeException if called - included for compatibility.
- Overrides:
getDeclaringClass
in class ParseNode
getPackage
public PackageNode getPackage()
- Returns this
PackageNode
object (included for compatibility).
- Overrides:
getPackage
in class ParseNode