blob: c923803d9ae2adb81bac84bfb4ffce2ad1ce521e [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.core.internal.expressions.tests;
import org.eclipse.core.runtime.Assert;
import org.eclipse.core.expressions.PropertyTester;
public class A_TypeExtender extends PropertyTester {
public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
if ("simple".equals(property)) { //$NON-NLS-1$
return "simple".equals(expectedValue); //$NON-NLS-1$
} else if ("overridden".equals(property)) { //$NON-NLS-1$
return "A".equals(expectedValue); //$NON-NLS-1$
} else if ("ordering".equals(property)) { //$NON-NLS-1$
return "A".equals(expectedValue); //$NON-NLS-1$
} else if ("chainOrdering".equals(property)) { //$NON-NLS-1$
return "A".equals(expectedValue); //$NON-NLS-1$
}
Assert.isTrue(false);
return false;
}
}