|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--kawigi.language.LanguageContainer
|
+--kawigi.language.ExtendedCSharpLanguage
| Field Summary | |
protected int |
caret
Used to set the caret location in the code template. |
static kawigi.language.ExtendedCSharpLanguage |
EXTENDED_CSHARP_LANGUAGE
A singleton instance of the extended C# language. |
| Fields inherited from class kawigi.language.LanguageContainer |
baselang |
| Constructor Summary | |
ExtendedCSharpLanguage()
Constructs a new extended C# instance from TC's singleton C# language instance. |
|
ExtendedCSharpLanguage(com.topcoder.shared.language.Language lang)
Constructs a new extended C# language based on lang. |
|
| Method Summary | |
protected java.lang.String |
generateTestingCode(com.topcoder.shared.problem.ProblemComponent comp,
com.topcoder.shared.language.Language lang)
Returns the testing code for the problem statement's default testing cases. |
java.lang.String |
getCompileCommand(com.topcoder.shared.problem.ProblemComponent comp)
Returns the command that should be used to compile the file. |
java.lang.String |
getDefaultTemplateCode()
Returns the text of a default template. |
java.lang.String |
getFileName(com.topcoder.shared.problem.ProblemComponent comp)
Returns the filename that the source file should be saved as. |
kawigi.template.TagLibrary |
getNativeTagLibrary()
Returns a library of tags that may come in useful for writing templates extending this class. |
java.lang.String |
getPropertyClass()
Overrides the property class in LanguageContainer so that it only has alphanumeric characters. |
java.lang.String |
getRunCommand(com.topcoder.shared.problem.ProblemComponent comp,
java.io.File cwd)
Returns the command that should be used to run the program and test cases. |
kawigi.language.Skeleton |
getSkeleton(com.topcoder.shared.problem.ProblemComponent comp)
Returns at a class and method declaration, with a main method that has testing code. |
kawigi.template.Template |
getTemplate()
Returns the KTT template representing how this class is templated. |
java.lang.String |
getTemplateCode(com.topcoder.shared.problem.ProblemComponent comp,
com.topcoder.shared.language.Language lang)
The templatable method for the C# template |
java.lang.Class |
getViewClass()
Returns the class of the C# implementation of a View |
protected java.lang.String |
makeParamList(com.topcoder.shared.problem.DataType[] types,
java.lang.String[] names)
Returns a string in the format |
protected java.lang.String |
toTest(com.topcoder.shared.problem.TestCase test,
com.topcoder.shared.problem.DataType[] types)
Quick utility function to provide the code that should return the answer. |
protected static java.lang.String |
translateObject(java.lang.String type,
java.lang.String value)
Quck utility function to convert a value to code that creates that value in Java. |
| Methods inherited from class kawigi.language.LanguageContainer |
customReadObject, customWriteObject, equals, getBaseLanguage, getId, getMethodSignature, getName |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final kawigi.language.ExtendedCSharpLanguage EXTENDED_CSHARP_LANGUAGE
protected int caret
| Constructor Detail |
public ExtendedCSharpLanguage(com.topcoder.shared.language.Language lang)
lang.
If lang is not an instance of CSharpLanguage, this class may not function normally.
public ExtendedCSharpLanguage()
| Method Detail |
public kawigi.language.Skeleton getSkeleton(com.topcoder.shared.problem.ProblemComponent comp)
getSkeleton in interface ExtendedLanguage
protected java.lang.String generateTestingCode(com.topcoder.shared.problem.ProblemComponent comp,
com.topcoder.shared.language.Language lang)
public java.lang.String getTemplateCode(com.topcoder.shared.problem.ProblemComponent comp,
com.topcoder.shared.language.Language lang)
protected java.lang.String toTest(com.topcoder.shared.problem.TestCase test,
com.topcoder.shared.problem.DataType[] types)
protected static java.lang.String translateObject(java.lang.String type,
java.lang.String value)
protected java.lang.String makeParamList(com.topcoder.shared.problem.DataType[] types,
java.lang.String[] names)
public java.lang.String getCompileCommand(com.topcoder.shared.problem.ProblemComponent comp)
getCompileCommand in interface ExtendedLanguage
public java.lang.String getRunCommand(com.topcoder.shared.problem.ProblemComponent comp,
java.io.File cwd)
getRunCommand in interface ExtendedLanguagepublic java.lang.String getFileName(com.topcoder.shared.problem.ProblemComponent comp)
getFileName in interface ExtendedLanguagepublic java.lang.Class getViewClass()
getViewClass in interface ExtendedLanguagepublic java.lang.String getPropertyClass()
getPropertyClass in interface ExtendedLanguagegetPropertyClass in class LanguageContainerpublic kawigi.template.Template getTemplate()
getTemplate in interface Templatablepublic kawigi.template.TagLibrary getNativeTagLibrary()
getNativeTagLibrary in interface Templatablepublic java.lang.String getDefaultTemplateCode()
getDefaultTemplateCode in interface Templatable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||