boolean passed = true;
String comment = "TypeSignature.test(" + iTypeDescription + ") ";
System.err.println("TypeDescription_Test.test_TypeSignature - doing tests...");
ITypeDescription superType = iTypeDescription.getSuperType();
boolean tmp_passed = superType == null || (names.length == 6 && _superType.test(notpassed, (Object [])names[5], superType));
passed = passed && tmp_passed;
if(!tmp_passed)
notpassed.addElement(comment + "- getSuperType - " + superType);
IMethodDescription iMethodDescriptions[] = iTypeDescription.getMethodDescriptions();
tmp_passed = iMethodDescriptions != null;
tmp_passed = tmp_passed && _methodSignatures.length == iMethodDescriptions.length;
if(tmp_passed)
for(int i = 0; i < _methodSignatures.length; ++ i) {
boolean tmp_tmp_passed = _methodSignatures[i].test(notpassed, i + _method_offset, iMethodDescriptions[i]);
tmp_passed = tmp_passed && tmp_tmp_passed;
if(!tmp_tmp_passed)
notpassed.addElement(comment + "- getMethodDescriptions - index:" + i);
}
else
notpassed.addElement(comment + "- getMethodDescriptions - size:" + iMethodDescriptions.length);
passed = passed && tmp_passed;
for(int i = 0; i < _method_names.length; ++ i) {
IMethodDescription iMethodDescription = iTypeDescription.getMethodDescription(i + _method_offset);
tmp_passed = iMethodDescription != null && _methodSignatures[i].test(notpassed, i + _method_offset, iMethodDescription);
passed = passed && tmp_passed;
if(!tmp_passed)
notpassed.addElement(comment + "- getMethodDescription(int " + (i + _method_offset) + ") - " + iMethodDescription);
}
for(int i = 0; i < _method_names.length; ++ i) {
IMethodDescription iMethodDescription = iTypeDescription.getMethodDescription(_method_names[i]);
tmp_passed = iMethodDescription != null && _methodSignatures[i].test(notpassed, i + _method_offset, iMethodDescription);
passed = passed && tmp_passed;
if(!tmp_passed)
notpassed.addElement(comment + "- getMethodDescription(String " + _method_names[i] + ")");
}
IFieldDescription iFieldDescriptions[] = iTypeDescription.getFieldDescriptions();
tmp_passed = iFieldDescriptions != null && iFieldDescriptions.length == _fieldSignatures.length;
if(tmp_passed)
for(int i = 0; i < _fieldSignatures.length; ++ i) {
boolean tmp_tmp_passed = _fieldSignatures[i].test(notpassed, ((Object [][])names[4])[i], iFieldDescriptions[i].getTypeDescription());
tmp_passed = tmp_passed && tmp_tmp_passed;
if(!tmp_tmp_passed)
notpassed.addElement(comment + "- getFieldDescriptions - index:" + i);
}
else
notpassed.addElement(comment + "- getFieldDescriptions - size:" + iFieldDescriptions.length);
passed = passed && tmp_passed;
TypeClass typeClass = iTypeDescription.getTypeClass();
tmp_passed = typeClass == names[3];
passed = passed && tmp_passed;
if(!tmp_passed)
notpassed.addElement(comment + "- getTypeClass");
ITypeDescription componentType = iTypeDescription.getComponentType();
tmp_passed = componentType == null;
passed = passed && tmp_passed;
if(!tmp_passed)
notpassed.addElement(comment + "- getComponentType");