// Path: kawigi/cmd/ProblemContext.java
// public class ProblemContext
// {
// 	/**
// 	 * ClassDecl describing the current problem.
// 	 **/
// 	private static ClassDecl currentClass;
// 	/**
// 	 * EditorLanguage indicating the current language.
// 	 **/
// 	private static EditorLanguage currentLanguage;
// 	/**
// 	 * Full text of the current problem statement.
// 	 */
// 	private static String currentStatement;
// 	
// 	/**
// 	 *	Returns the current problem's class info.
// 	 **/
// 	public static ClassDecl getCurrentClass()
// 	{
// 		return currentClass;
// 	}
// 	
// 	/**
// 	 *	Sets the current problem's class info.
// 	 **/
// 	public static void setCurrentClass(ClassDecl currentClass)
// 	{
// 		ProblemContext.currentClass = currentClass;
// 	}
// 	
// 	/**
// 	 *	Returns the current language that is being used.
// 	 **/
// 	public static EditorLanguage getLanguage()
// 	{
// 		return currentLanguage;
// 	}
// 	
// 	/**
// 	 *	Sets the current language that is being used.
// 	 **/
// 	public static void setLanguage(EditorLanguage lang)
// 	{
// 		currentLanguage = lang;
// 	}
// 	
// 	/**
// 	 * Returns the current problem statement.
// 	 **/
// 	public static String getStatement()
// 	{
// 		return currentStatement;
// 	}
// 	
// 	/**
// 	 * Sets the current problem statement.
// 	 **/
// 	public static void setStatement(String statement)
// 	{
// 		currentStatement = statement;
// 	}
// }


import com.topcoder.shared.language.*;
import com.topcoder.shared.problem.*;
import kawigi.cmd.ProblemContext;
import kawigi.language.*;

package kawigi.problem;




/**
 * This is perhaps one of the most important source files in KawigiEdit,
 * because it converts TopCoder's problem statements into a format that allows
 * KawigiEdit to generate skeleton and test code in plugin mode.
 **/
public final class TCProblemConverter implements ClassDeclGenerator
{
	/**
	 * TopCoder ProblemComponent. Saved here for "reparsing" purposes.
	 */
	private static ProblemComponent component;
	/**
	 * TopCoder Language. Saved here for "reparsing" purposes.
	 */

// Path: kawigi/cmd/ProblemContext.java
// public class ProblemContext
// {
// 	/**
// 	 * ClassDecl describing the current problem.
// 	 **/
// 	private static ClassDecl currentClass;
// 	/**
// 	 * EditorLanguage indicating the current language.
// 	 **/
// 	private static EditorLanguage currentLanguage;
// 	/**
// 	 * Full text of the current problem statement.
// 	 */
// 	private static String currentStatement;
// 	
// 	/**
// 	 *	Returns the current problem's class info.
// 	 **/
// 	public static ClassDecl getCurrentClass()
// 	{
// 		return currentClass;
// 	}
// 	
// 	/**
// 	 *	Sets the current problem's class info.
// 	 **/
// 	public static void setCurrentClass(ClassDecl currentClass)
// 	{
// 		ProblemContext.currentClass = currentClass;
// 	}
// 	
// 	/**
// 	 *	Returns the current language that is being used.
// 	 **/
// 	public static EditorLanguage getLanguage()
// 	{
// 		return currentLanguage;
// 	}
// 	
// 	/**
// 	 *	Sets the current language that is being used.
// 	 **/
// 	public static void setLanguage(EditorLanguage lang)
// 	{
// 		currentLanguage = lang;
// 	}
// 	
// 	/**
// 	 * Returns the current problem statement.
// 	 **/
// 	public static String getStatement()
// 	{
// 		return currentStatement;
// 	}
// 	
// 	/**
// 	 * Sets the current problem statement.
// 	 **/
// 	public static void setStatement(String statement)
// 	{
// 		currentStatement = statement;
// 	}
// }


// Path: kawigi/problem/TCProblemConverter.java
import com.topcoder.shared.language.*;
import com.topcoder.shared.problem.*;
import kawigi.cmd.ProblemContext;
import kawigi.language.*;

package kawigi.problem;




/**
 * This is perhaps one of the most important source files in KawigiEdit,
 * because it converts TopCoder's problem statements into a format that allows
 * KawigiEdit to generate skeleton and test code in plugin mode.
 **/
public final class TCProblemConverter implements ClassDeclGenerator
{
	/**
	 * TopCoder ProblemComponent. Saved here for "reparsing" purposes.
	 */
	private static ProblemComponent component;
	/**
	 * TopCoder Language. Saved here for "reparsing" purposes.
	 */

	private static Language tclang;
