Methods Summary |
---|
public void | clear()Clear the parameter stack and the call stack.
this.callStack.clear();
super.clear();
|
public java.lang.String | getCurrentSourceClass()Gets the "current" calling class name.
return this.callStack.peek().getClassName();
|
public java.lang.String | getCurrentSourceMethod()Gets the "current" calling method name.
return this.callStack.peek().getMethodName();
|
public static tests.util.CallVerificationStack | getInstance()Gets the singleton instance.
return _instance;
|
public java.lang.Object | pop()Pop an object.
this.callStack.pop();
return super.pop();
|
public boolean | popBoolean()Pop a boolean.
BaseTypeWrapper wrapper = (BaseTypeWrapper) this.pop();
Boolean value = (Boolean) wrapper.getValue();
return value.booleanValue();
|
public char | popChar()Pop a char.
BaseTypeWrapper wrapper = (BaseTypeWrapper) this.pop();
Character value = (Character) wrapper.getValue();
return value.charValue();
|
public double | popDouble()Pop a double.
BaseTypeWrapper wrapper = (BaseTypeWrapper) this.pop();
Double value = (Double) wrapper.getValue();
return value.doubleValue();
|
public float | popFloat()Pop a float.
BaseTypeWrapper wrapper = (BaseTypeWrapper) this.pop();
Float value = (Float) wrapper.getValue();
return value.floatValue();
|
public int | popInt()Pop a int.
BaseTypeWrapper wrapper = (BaseTypeWrapper) this.pop();
Integer value = (Integer) wrapper.getValue();
return value.intValue();
|
public long | popLong()Pop a long.
BaseTypeWrapper wrapper = (BaseTypeWrapper) this.pop();
Long value = (Long) wrapper.getValue();
return value.longValue();
|
public short | popShort()Pop a short.
BaseTypeWrapper wrapper = (BaseTypeWrapper) this.pop();
Short value = (Short) wrapper.getValue();
return value.shortValue();
|
public void | push(double val)Pushes a double onto the top of this stack.
this.push(new BaseTypeWrapper(val));
|
public void | push(float val)Pushes a float onto the top of this stack.
this.push(new BaseTypeWrapper(val));
|
public void | push(int val)Pushes an int onto the top of this stack.
this.push(new BaseTypeWrapper(val));
|
public void | push(long val)Pushes a long onto the top of this stack.
this.push(new BaseTypeWrapper(val));
|
public void | push(short val)Pushes a short onto the top of this stack.
this.push(new BaseTypeWrapper(val));
|
public java.lang.Object | push(java.lang.Object o)
pushCallStack();
return super.push(o);
|
public void | push(boolean val)Pushes a boolean onto the top of this stack.
this.push(new BaseTypeWrapper(val));
|
public void | push(char val)Pushes a char onto the top of this stack.
this.push(new BaseTypeWrapper(val));
|
private void | pushCallStack()Pushes the call stack.
StackTraceElement[] eles = (new Throwable()).getStackTrace();
int i;
for (i = 1; i < eles.length; i++) {
if (!eles[i].getClassName().equals(this.getClass().getName())) {
break;
}
}
this.callStack.push(eles[i]);
|