{
if (propertyValue.equals(pd.getName()))
{
int argsNum = getArgumentsNumber();
if (hasAttr("index")) { //$NON-NLS-1$
IndexedPropertyDescriptor ipd = (IndexedPropertyDescriptor) pd;
if (argsNum == 1)
{
method = ipd.getIndexedReadMethod();
}
else if (argsNum == 0)
{
method = ipd.getReadMethod();
}
}
else
{
method = pd.getReadMethod();
}
if (method != null)
{
methodFound = matchMethodParams(method, references);
}
if (methodFound == false)
{
if (hasAttr("index")) { //$NON-NLS-1$
IndexedPropertyDescriptor ipd = (IndexedPropertyDescriptor) pd;
if (argsNum == 2)
{
method = ipd.getIndexedWriteMethod();
}
else if (argsNum == 1)
{
method = ipd.getWriteMethod();
}
}
else
{
method = pd.getWriteMethod();