|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The interface for the implementation of all the
semantics associated with a supported programming language. This
basically consists of the logic for generating language-dependent
method signatures. An instance of type Language also
serves as a convenient identifier for a particular language.
DataType| Method Summary | |
void |
customReadObject(com.topcoder.shared.netCommon.CSReader reader)
Custom serialization method. |
void |
customWriteObject(com.topcoder.shared.netCommon.CSWriter writer)
Custom serialization method. |
boolean |
equals(java.lang.Object o)
Two languages are equal if they have the same id. |
int |
getId()
Returns the unique identifier of the language. |
java.lang.String |
getMethodSignature(java.lang.String methodName,
DataType returnType,
DataType[] paramTypes,
java.lang.String[] paramNames)
Creates a method signature for the given parameters specific to the language. |
java.lang.String |
getName()
Returns the textual name for the language such as "Java" or "C++". |
| Method Detail |
public int getId()
public java.lang.String getName()
public boolean equals(java.lang.Object o)
equals in class java.lang.Object
public void customWriteObject(com.topcoder.shared.netCommon.CSWriter writer)
throws java.io.IOException
customWriteObject in interface com.topcoder.shared.netCommon.CustomSerializablewriter - the writer to write to.
java.io.IOException - if an I/O error has occurred in the stream that backs the writer.
public void customReadObject(com.topcoder.shared.netCommon.CSReader reader)
throws java.io.IOException,
java.io.ObjectStreamException
customReadObject in interface com.topcoder.shared.netCommon.CustomSerializablereader - the reader to read from.
java.io.ObjectStreamException - if the information that is read is inconsistent (stream corrupted
or incompatibility between writers and readers)
java.io.IOException - if an I/O error has occurred in the stream that backs the reader.
public java.lang.String getMethodSignature(java.lang.String methodName,
DataType returnType,
DataType[] paramTypes,
java.lang.String[] paramNames)
methodName - the name of the method.returnType - the datatype that will be returned by the method.paramTypes - the datatype of the parameters of the method.paramNames - the name of parameters of the method.
DataType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||