de.uka.ipd.sdq.ByCounter.parsing
Class CallGraphMethod
java.lang.Object
de.uka.ipd.sdq.ByCounter.parsing.CallGraphMethod
public final class CallGraphMethod
- extends java.lang.Object
A node in the call graph that represents a method.
- Author:
- Martin Krogmann
Constructor Summary |
CallGraphMethod(java.lang.String owner,
java.lang.String name,
java.lang.String desc)
|
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
CallGraphMethod
public CallGraphMethod(java.lang.String owner,
java.lang.String name,
java.lang.String desc)
- Parameters:
desc
- name
- owner
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
- Parameters:
obj
- The Object
to compare to.
- Returns:
- True, if this node represents the same method as obj,
i.e. all fields are equal.
getOwner
public java.lang.String getOwner()
- Returns:
- the owner
getName
public java.lang.String getName()
- Returns:
- the name
getDesc
public java.lang.String getDesc()
- Returns:
- the desc
getChildMethods
public java.util.List<CallGraphMethod> getChildMethods()
- Returns:
- the childMethods
addChildMethod
public void addChildMethod(CallGraphMethod m)
- Add m to the list of child methods, i.e. methods called by this method.
If m is already in the list of child methods, it will not be added again.
- Parameters:
m
- the CallGraphMethod
to add as child.
toString
public java.lang.String toString()
- Constructs a
String
with all attributes
in name = value format.
- Overrides:
toString
in class java.lang.Object
- Returns:
- a
String
representation
of this object.
matchesMethodDescriptor
public boolean matchesMethodDescriptor(MethodDescriptor method)
- Parameters:
method
- The MethodDescriptor
for a method to compare to.
- Returns:
- True, if this node represents the same method as method,
i.e. all fields equal their equivalents.