|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.designwizard.design.AbstractEntity
org.designwizard.design.PackageNode
public class PackageNode
PackageNode
objects are constructed automatically by the DesignWizard
class when classes
are loaded. To get access to a desired package extracted, do not use the constructor of this class. Instead, use the
class DesignWizard
as it follows:
Instances of the classDesignWizard dw = new DesignWizard("/home/user/application/classes"); PackageNode c = dw.getPackage("foo.bar.mypackage")
PackageNode
represent packages in
the code extracted.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.designwizard.design.Entity |
---|
Entity.TypesOfEntities |
Field Summary |
---|
Fields inherited from class org.designwizard.design.AbstractEntity |
---|
modifiers, name, relations, type |
Constructor Summary | |
---|---|
PackageNode(java.lang.String entity)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
|
java.util.Set<ClassNode> |
getAllClasses()
Returns a java.util.Set containing ClassNode objects reflecting all
the classes inside the package represented by this PackageNode . |
java.util.Set<MethodNode> |
getAllMethods()
Returns a java.util.Set containing MethodNode objects reflecting all
the methods inside the package represented by this PackageNode . |
java.util.Set<ClassNode> |
getCalleeClasses()
Returns a java.util.Set containing ClassNode objects reflecting all
the classes that are referenced by the classes inside the package represented by this PackageNode . |
java.util.Set<MethodNode> |
getCalleeMethods()
Returns a Set of MethodNode containing the methods that
are called by this Entity . |
java.util.Set<PackageNode> |
getCalleePackages()
Returns a java.util.Set containing PackageNode objects reflecting all
the packages that are referenced by the package represented by this PackageNode . |
java.util.Set<ClassNode> |
getCallerClasses()
Returns a java.util.Set containing ClassNode objects reflecting all
the classes that reference the package represented by this PackageNode . |
java.util.Set<MethodNode> |
getCallerMethods()
Returns a java.util.Set containing MethodNode objects reflecting all
the methods that reference the classes or interfaces inside the package
represented by this |
java.util.Set<PackageNode> |
getCallerPackages()
Returns a java.util.Set containing PackageNode objects reflecting all
the packages that reference the package represented by this PackageNode . |
java.lang.String |
getClassName()
Returns the name of the class that represents this Entity object. |
ClassNode |
getClassNode()
Returns the ClassNode that represents this Entity object. |
java.util.List<java.lang.String[]> |
getImpactOfAChange()
Returns a List of String arrays that represents the trace of calls. |
PackageNode |
getPackage()
Returns the package which this Entity belongs to. |
int |
hashCode()
|
Methods inherited from class org.designwizard.design.AbstractEntity |
---|
addModifier, addModifiers, addRelation, containsModifiers, containsRelation, getModifiers, getName, getRelations, getShortName, getTypeOfEntity, getVisibility, isAbstract, removeRelation, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.designwizard.design.Entity |
---|
addModifier, addModifiers, addRelation, containsModifiers, containsRelation, getModifiers, getName, getRelations, getShortName, getTypeOfEntity, getVisibility, isAbstract, removeRelation |
Constructor Detail |
---|
public PackageNode(java.lang.String entity)
Method Detail |
---|
public java.lang.String getClassName()
Entity
Entity
object.
For instance, if this Entity
object is a FieldNode
, this method will return the
name of the class that contains the field. The same is applied to MethodNode
s objects. In the case of
ClassNode
objects, calling this method has the same effect as the designwizard.design.ClassNode.getName()
method.
getClassName
in interface Entity
Entity
object.public ClassNode getClassNode()
Entity
ClassNode
that represents this Entity
object.
For instance, if this Entity
object is a FieldNode
, this method will return the
ClassNode
that contains the field. The same is applied to MethodNode
s objects.
getClassNode
in interface Entity
ClassNode
object that represents this Entity
object.public java.util.List<java.lang.String[]> getImpactOfAChange()
Entity
List
of String
arrays that represents the trace of calls.
The deep of the search is configured on designwizard.properties
getImpactOfAChange
in interface Entity
public java.util.Set<ClassNode> getAllClasses()
java.util.Set
containing ClassNode
objects reflecting all
the classes inside the package represented by this PackageNode
.
java.util.Set
containing ClassNode
objects reflecting all
the classes inside the package represented by this PackageNode
.public PackageNode getPackage()
Entity
Entity
belongs to. If this Entity
belongs to
the default package, a package with the name "default" is returned.
getPackage
in interface Entity
Entity
belongs to.public java.util.Set<ClassNode> getCallerClasses()
java.util.Set
containing ClassNode
objects reflecting all
the classes that reference the package represented by this PackageNode
.
getCallerClasses
in interface Entity
getCallerClasses
in class AbstractEntity
public java.util.Set<ClassNode> getCalleeClasses()
java.util.Set
containing ClassNode
objects reflecting all
the classes that are referenced by the classes inside the package represented by this PackageNode
.
getCalleeClasses
in interface Entity
getCalleeClasses
in class AbstractEntity
public java.util.Set<MethodNode> getCallerMethods()
java.util.Set
containing MethodNode
objects reflecting all
the methods that reference the classes or interfaces inside the package
represented by this
getCallerMethods
in interface Entity
Set
containing the methods that calls this Entity
.public java.util.Set<MethodNode> getCalleeMethods()
Entity
Set
of MethodNode
containing the methods that
are called by this Entity
.
getCalleeMethods
in interface Entity
Set
containing the methods that are called by this Entity
.public java.util.Set<PackageNode> getCallerPackages()
java.util.Set
containing PackageNode
objects reflecting all
the packages that reference the package represented by this PackageNode
.
getCallerPackages
in interface Entity
java.util.Set
containing PackageNode
objects reflecting all
the packages that reference the package represented by this PackageNode
.public java.util.Set<PackageNode> getCalleePackages()
java.util.Set
containing PackageNode
objects reflecting all
the packages that are referenced by the package represented by this PackageNode
.
getCalleePackages
in interface Entity
java.util.Set
containing PackageNode
objects reflecting all
the packages that are referenced by the package represented by this PackageNode
.public java.util.Set<MethodNode> getAllMethods()
java.util.Set
containing MethodNode
objects reflecting all
the methods inside the package represented by this PackageNode
.
java.util.Set
containing MethodNode
objects reflecting all
the methods inside the package represented by this PackageNode
.public int hashCode()
hashCode
in class AbstractEntity
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |