org.eclipse.core.resources.filtermatchers.AbstractFileInfoMatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aspectjtools Show documentation
Show all versions of aspectjtools Show documentation
AspectJ tools most notably contains the AspectJ compiler (AJC). AJC applies aspects to Java classes during
compilation, fully replacing Javac for plain Java classes and also compiling native AspectJ or annotation-based
@AspectJ syntax. Furthermore, AJC can weave aspects into existing class files in a post-compile binary weaving step.
This library is a superset of AspectJ weaver and hence also of AspectJ runtime.
/*******************************************************************************
* Copyright (c) 2008, 2010 Freescale Semiconductor and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Serge Beauchamp(Freescale Semiconductor) - initial API and implementation
* IBM Corporation - ongoing development
*******************************************************************************/
package org.eclipse.core.resources.filtermatchers;
import org.eclipse.core.filesystem.IFileInfo;
import org.eclipse.core.filesystem.provider.FileInfo;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
/**
* The abstract base class for all file info matchers. Instances
* of this class are provided using the org.eclipse.core.resources.filterMatchers
* extension point.
*
* @since 3.6
*/
public abstract class AbstractFileInfoMatcher {
/**
* Tests the given {@link FileInfo}
*
* @param parent the parent container
* @param fileInfo the {@link FileInfo} object to test
* @return true
if the given {@link FileInfo} matches,
* and false
otherwise.
* @throws CoreException the implementor should throw a CoreException if,
* in the case that the parent or fileInfo doesn't exist in the workspace
* or in the file system, the return value can't be determined.
*/
public abstract boolean matches(IContainer parent, IFileInfo fileInfo) throws CoreException;
/**
* Sets initialization data for this matcher.
*
* @param project project this matcher works on
* @param arguments matcher specific initialization argument
* @throws CoreException if initialization failed
*/
public abstract void initialize(IProject project, Object arguments) throws CoreException;
}