blob: 8cb806933bb2344e2554cdd23f3224285b7dfa9d [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010, 2019 Mia-Software and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Nicolas Bros (Mia-Software) - initial API and implementation
*******************************************************************************/
package org.eclipse.modisco.infra.facet.examples.kdm;
import java.io.File;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.modisco.infra.query.core.java.IJavaModelQuery;
/**
* Number of characters in the underlying file.
* @deprecated Replaced by EMF Facet
*/
@Deprecated
public class NumberOfCharacters extends AbstractRecursiveCount implements
IJavaModelQuery<EObject, Integer> {
@Override
protected Integer count(final File file) {
return LineCountHelper.getInstance().numberOfCharacters(file);
}
}