|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.gda.pg.eti.ask.przemyslawbielicki.aeh.info.MethodStat
MethodStat contains statistics for method name methodName_.
MethodStat can be converted to XML element Element by
getElement(DocumentImpl) method.
| Field Summary | |
private int |
correct_
Method's correct invocation counter |
private int |
errors_
Method's erroreous invocation counter |
private int |
exceptionsClient_
Method's client exceptional invocation counter |
private int |
exceptionsServer_
Method's server exceptional invocation counter |
private String |
methodName_
Method name |
private Class[] |
parameters_
Method's parameter types array |
private String[] |
parameterTypes_
Method's parameter types array |
private String |
returnType_
Method's return type |
| Constructor Summary | |
MethodStat()
Default constructor |
|
MethodStat(Method method)
Constructor that creates new MethodStat instance for given method.
|
|
| Method Summary | |
boolean |
equals(Object o)
Typical equals method. |
int |
getAllInvocations()
Getter method for all method invocations_ number |
int |
getCorrect()
Getter method for correct invocation counter |
ElementImpl |
getElement(DocumentImpl document)
Retrieves XML element for current method statistics subtree. |
int |
getErrors()
Getter method for erroreous invocation counter |
int |
getExceptionsClient()
Getter method for client exceptional invocation counter |
int |
getExceptionsServer()
Getter method for server exceptional invocation counter |
String |
getMethodName()
Getter method for method name |
String[] |
getParameterTypes()
Getter method for parameter types array |
String |
getReturnType()
Getter method for return type |
String |
hashKey()
Creates hash key for HashMap corresponding to
current method statistics. |
void |
setCorrect(int i)
Setter method for correct invocation counter |
void |
setErrors(int i)
Setter method for erroreous invocation counter |
void |
setExceptionsClient(int i)
Setter method for client exceptional invocation counter |
void |
setExceptionsServer(int i)
Setter method for server exceptional invocation counter |
void |
setMethodName(String string)
Setter method for method name |
void |
setParameters(Class[] list)
Setter method for parameter types array |
void |
setParameterTypes(String[] list)
Setter method for parameter types array |
void |
setReturnType(String string)
Setter method for return type |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private String methodName_
private Class[] parameters_
private String[] parameterTypes_
private String returnType_
private int correct_
private int errors_
private int exceptionsClient_
private int exceptionsServer_
| Constructor Detail |
public MethodStat()
public MethodStat(Method method)
MethodStat instance for given method.
All necessary informations are copied from given method parameter.
method - to create statistics for| Method Detail |
public ElementImpl getElement(DocumentImpl document)
document - parent document to add current element to
public int getErrors()
public int getExceptionsClient()
public int getExceptionsServer()
public int getCorrect()
public int getAllInvocations()
public String getMethodName()
public String[] getParameterTypes()
public String getReturnType()
public void setErrors(int i)
i - erroreous invocation counterpublic void setExceptionsClient(int i)
i - exceptional invocation counterpublic void setExceptionsServer(int i)
i - exceptional invocation counterpublic void setCorrect(int i)
i - correct invocation counterpublic void setMethodName(String string)
string - method namepublic void setParameters(Class[] list)
list - parameter types arraypublic void setParameterTypes(String[] list)
list - parameter types arraypublic void setReturnType(String string)
string - return typepublic String hashKey()
HashMap corresponding to
current method statistics. Generated key is String made
from methodName_, parameterTypes_ and returnType_
public boolean equals(Object o)
o - to check if it is equal to this
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||