|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectth.co.edge.jseq.Activation
public class Activation
An Activation represents one method call, or in other words,
one stack frame.
| Constructor Summary | |
|---|---|
Activation(Activation parent,
java.lang.String className,
com.sun.jdi.Method method,
int frameCount)
Creates a new Activation instance, representing a certain
method call. |
|
| Method Summary | |
|---|---|
void |
add(Activation nestedActivation)
Adds another nested Activation to this
Activation. |
Activation |
copy(Activation parentOfCopy)
Performs a deep copy of this Activation instance. |
boolean |
equals(java.lang.Object o)
Compares this Activation to another object, and returns
true if and only if the other object is an
Activation with the same class and method names, and equal
nested activations. |
java.lang.String |
getClassName()
Returns the name of the class that this Activation belongs
to. |
int |
getFrameCount()
Returns the index number of the stack frame associated with this Association. |
com.sun.jdi.Method |
getMethod()
Returns the Method that is being called by this
Activation. |
ActivationList |
getNestedActivations()
Returns an ActivationList with all nested
Activations, that is, all methods called by this method. |
int |
getNumCalls()
Returns the number of nested activations. |
int |
getNumRepetitions()
Returns the number of times the method represented by this Activation is being called consecutively, with no other
calls in between. |
Activation |
getParent()
Returns the Activation that called this
Activation, or null if this is a root
activation. |
int |
hashCode()
Returns a hash code for this Activation. |
void |
increaseNumRepetitions()
Increases the number of consecutive calls of this method by one. |
void |
setNestedActivations(ActivationList nestedActivations)
Sets the ActivationList with all nested
Activations called by this method. |
void |
setParent(Activation parent)
Sets the Activation that called this
Activation. |
java.lang.String |
toString()
Returns a string representation of this Activation and all
its nested Activations, with each activation on a
separate line, and nested activations indented. |
java.lang.String |
toString(int indent)
As toString(), but indents the first activation a given
number of spaces. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Activation(Activation parent,
java.lang.String className,
com.sun.jdi.Method method,
int frameCount)
Activation instance, representing a certain
method call.
parent - the Activation representing the method that
called this method, or null if this is a root
activation. The newly created Activation will
be added as a nested activation of parentclassName - the name of the class that this method call belongs tomethod - the Method that is being calledframeCount - the index number of the stack frame associated with this
Association| Method Detail |
|---|
public Activation copy(Activation parentOfCopy)
Activation instance.
parentOfCopy - the Activation representing the method that
called this method, potentially different from the original,
or null if the copy is a root activation. The
newly created Activation will be added as a
nested activation of parentOfCopy
Activation instancepublic Activation getParent()
Activation that called this
Activation, or null if this is a root
activation.
Activationpublic void setParent(Activation parent)
Activation that called this
Activation.
parent - the caller of this Activation, or
null if this is a root activationpublic java.lang.String getClassName()
Activation belongs
to.
Activationpublic com.sun.jdi.Method getMethod()
Method that is being called by this
Activation.
Method represented by this
Activationpublic int getFrameCount()
Association.
public int getNumRepetitions()
Activation is being called consecutively, with no other
calls in between. If this number is greater than one, it may be
represented in a sequence diagram in some special way, e.g., "*[3]" for
three repetitions.
public void increaseNumRepetitions()
public void add(Activation nestedActivation)
Activation to this
Activation. This represents a method call made by this
method.
nestedActivation - the nested Activation to add to this
Activationpublic ActivationList getNestedActivations()
ActivationList with all nested
Activations, that is, all methods called by this method.
ActivationList with all nested activations.public void setNestedActivations(ActivationList nestedActivations)
ActivationList with all nested
Activations called by this method.
nestedActivations - the new ActivationList with nested activations.public int getNumCalls()
public java.lang.String toString()
Activation and all
its nested Activations, with each activation on a
separate line, and nested activations indented.
toString in class java.lang.ObjectActivationpublic java.lang.String toString(int indent)
toString(), but indents the first activation a given
number of spaces.
indent - the number of spaces to indent the first activation
Activation, with
the first indented indent number of spaces, and
nested activations further indentedpublic boolean equals(java.lang.Object o)
Activation to another object, and returns
true if and only if the other object is an
Activation with the same class and method names, and equal
nested activations.
equals in class java.lang.Objecto - the object to compare this Activation to
true if o is an
Activation with the same class and method names
and the equal nested activations, false otherwisepublic int hashCode()
Activation.
hashCode in class java.lang.ObjectActivation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||