WALA/com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/ipa/callgraph/correlations/extraction/ExtractionPolicy.java

27 lines
905 B
Java

/*******************************************************************************
* Copyright (c) 2011 IBM Corporation.
* 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 com.ibm.wala.cast.js.ipa.callgraph.correlations.extraction;
import java.util.List;
import com.ibm.wala.cast.tree.CAstNode;
/**
* An extraction policy tells a {@link ClosureExtractor} which bits of code to extract into closures.
*
* @author mschaefer
*
*/
public abstract class ExtractionPolicy {
public abstract List<ExtractionRegion> extract(CAstNode node);
}