blob: 58d346d987dd94de753eef1ae62c3c28841c5919 [file] [log] [blame]
/**
* Copyright (c) 2010 Mia-Software.
* 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:
*
* Nicolas Guyomar (Mia-Software) - initial API and implementation
*/
package org.eclipse.modisco.jee.queries.annotations.jpa;
import org.eclipse.gmt.modisco.infra.query.core.exception.ModelQueryExecutionException;
import org.eclipse.gmt.modisco.infra.query.core.java.IJavaModelQuery;
import org.eclipse.gmt.modisco.infra.query.core.java.ParameterValueList;
import org.eclipse.gmt.modisco.java.BodyDeclaration;
import org.eclipse.modisco.jee.queries.annotations.internal.EvaluateAnnotation;
public class IsPreRemove implements IJavaModelQuery<BodyDeclaration, Boolean> {
static final String ANNOTATION_NAME = "PreRemove"; //$NON-NLS-1$
public Boolean evaluate(final BodyDeclaration context,
final ParameterValueList parameterValues)
throws ModelQueryExecutionException {
return EvaluateAnnotation.evaluate(context,
IsPreRemove.ANNOTATION_NAME);
}
}