All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jacoco.report.ILanguageNames Maven / Gradle / Ivy

There is a newer version: 0.8.12
Show newest version
/*******************************************************************************
 * Copyright (c) 2009, 2016 Mountainminds GmbH & Co. KG and Contributors
 * 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:
 *    Marc R. Hoffmann - initial API and implementation
 *    
 *******************************************************************************/
package org.jacoco.report;

/**
 * Interface to create programming language specific names from VM names.
 */
public interface ILanguageNames {

	/**
	 * Calculates the language specific name of a package.
	 * 
	 * @param vmname
	 *            vm name of a package
	 * @return language specific notation for the package
	 */
	public String getPackageName(String vmname);

	/**
	 * Calculates the language specific name of a class.
	 * 
	 * @param vmname
	 *            vm name of a class
	 * @param vmsignature
	 *            vm signature of the class (may be null)
	 * @param vmsuperclass
	 *            vm name of the superclass of the class (may be
	 *            null)
	 * @param vminterfaces
	 *            vm names of interfaces of the class (may be null)
	 * @return language specific notation of the class
	 */
	public String getClassName(String vmname, String vmsignature,
			String vmsuperclass, String[] vminterfaces);

	/**
	 * Calculates the language specific qualified name of a class.
	 * 
	 * @param vmname
	 *            vm name of a class
	 * @return language specific qualified notation of the class
	 */
	public String getQualifiedClassName(String vmname);

	/**
	 * Calculates the language specific name of a method.
	 * 
	 * @param vmclassname
	 *            vm name of a containing class
	 * @param vmmethodname
	 *            vm name of the method
	 * @param vmdesc
	 *            vm method descriptor
	 * @param vmsignature
	 *            vm signature of the method (may be null)
	 * @return language specific notation for the method
	 */
	public String getMethodName(String vmclassname, String vmmethodname,
			String vmdesc, String vmsignature);

	/**
	 * Calculates the language specific fully qualified name of a method.
	 * 
	 * @param vmclassname
	 *            vm name of a containing class
	 * @param vmmethodname
	 *            vm name of the method
	 * @param vmdesc
	 *            vm method descriptor
	 * @param vmsignature
	 *            vm signature of the method (may be null)
	 * @return language specific notation for the method
	 */
	public String getQualifiedMethodName(String vmclassname,
			String vmmethodname, String vmdesc, String vmsignature);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy