blob: 0cfe49bd6f6db072e88701e2db75e29f3f14a1d2 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.core.internal.expressions.tests;
import org.eclipse.core.expressions.PropertyTester;
import org.eclipse.core.internal.expressions.Assert;
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;
}
}