kawigi.problem
Class TCProblemConverter

java.lang.Object
  extended by kawigi.problem.TCProblemConverter
All Implemented Interfaces:
ClassDeclGenerator

public class TCProblemConverter
extends java.lang.Object
implements ClassDeclGenerator

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.


Constructor Summary
TCProblemConverter()
           
 
Method Summary
 ClassDecl getClassDecl(java.lang.Object... parameters)
          Generates a ClassDecl from the given parameters.
 ClassDecl reparseClassDecl()
          Converting saved component and tclang into ClassDecl once more.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCProblemConverter

public TCProblemConverter()
Method Detail

getClassDecl

public ClassDecl getClassDecl(java.lang.Object... parameters)
Generates a ClassDecl from the given parameters. In this implementation, the first parameter must be a TopCoder ProblemComponent, and the second parameter must be a TopCoder Language. As a side effect, the KawigiEdit language corresponding to the TopCoder language given is set as the current language in the ProblemContext class.

Specified by:
getClassDecl in interface ClassDeclGenerator

reparseClassDecl

public ClassDecl reparseClassDecl()
Converting saved component and tclang into ClassDecl once more.

Specified by:
reparseClassDecl in interface ClassDeclGenerator