|
||||||||||
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.FieldNode
public class FieldNode
A FieldNode
provides information about a
single field of a class or an interface.
To get access to a desired method extracted, do not use the constructor of this class. Instead, use the
class DesignWizard
as it follows:
DesignWizard dw = new DesignWizard("/home/user/application/classes"); FieldNode c = dw.getField("MyAplicationClassExample.field");
ClassNode
,
org.designwizard.design.ClassNode#getFields()
,
ClassNode.getField(String)
,
ClassNode.getDeclaredFields()
,
org.designwizard.design.ClassNode#getDeclaredField(String)
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 | |
---|---|
FieldNode(java.lang.String name)
Creates a new Field . |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
Verifies if this entity is equals the other entity. |
java.util.Set<ClassNode> |
getCalleeClasses()
This method returns an empty Set. |
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 Set of PackageNode containing the packages that are referenced
by this Entity . |
java.util.Set<ClassNode> |
getCallerClasses()
Returns the classes that reference this FieldNode. |
java.util.Set<MethodNode> |
getCallerMethods()
Returns the Methods that access this field. |
java.util.Set<PackageNode> |
getCallerPackages()
Returns a Set of PackageNode containing the packages that reference this Entity . |
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. |
ClassNode |
getDeclaringClass()
Returns the ClassNode object representing the class or interface
that declares the field represented by this FieldNode 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. |
ClassNode |
getType()
Returns a ClassNode object that identifies the
declared type for the field represented by this
FieldNode object. |
int |
hashCode()
|
boolean |
isStatic()
Returns true if this field is a static field; returns false otherwise. |
java.lang.String |
toString()
Method that returns the description of this design element. |
Methods inherited from class org.designwizard.design.AbstractEntity |
---|
addModifier, addModifiers, addRelation, containsModifiers, containsRelation, getModifiers, getName, getRelations, getShortName, getTypeOfEntity, getVisibility, isAbstract, removeRelation |
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 FieldNode(java.lang.String name)
Field
.
name
- the name of this entity.visibility
- the visibility of this entity.Method Detail |
---|
public ClassNode getType()
ClassNode
object that identifies the
declared type for the field represented by this
FieldNode
object.
ClassNode
object identifying the declared
type of the field represented by this objectpublic ClassNode getDeclaringClass()
ClassNode
object representing the class or interface
that declares the field represented by this FieldNode
object. If
it is not possible to define the class that declares the field represented by this
FieldNode
object, then null is returned.
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.lang.String toString()
toString
in class AbstractEntity
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class AbstractEntity
public boolean isStatic()
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.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 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<MethodNode> getCallerMethods()
getCallerMethods
in interface 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<ClassNode> getCallerClasses()
getCallerClasses
in interface Entity
getCallerClasses
in class AbstractEntity
public java.util.Set<ClassNode> getCalleeClasses()
getCalleeClasses
in interface Entity
getCalleeClasses
in class AbstractEntity
public java.util.Set<PackageNode> getCallerPackages()
Entity
Set
of PackageNode
containing the packages that reference this Entity
.
getCallerPackages
in interface Entity
Set
containing the packages that reference this Entity
.public java.util.Set<PackageNode> getCalleePackages()
Entity
Set
of PackageNode
containing the packages that are referenced
by this Entity
.
getCalleePackages
in interface Entity
Set
containing the packages that are referenced
by this Entity
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |