Package edu.wpi.grip.ui.codegeneration
Class CppTMethods
- java.lang.Object
-
- edu.wpi.grip.ui.codegeneration.TemplateMethods
-
- edu.wpi.grip.ui.codegeneration.CppTMethods
-
public class CppTMethods extends TemplateMethods
-
-
Constructor Summary
Constructors Constructor Description CppTMethods()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcallOp(TStep step)Converts a step into a string the represents the call of the operation in the correct language.java.lang.StringgetterName(java.lang.String name)Converts a name into the format for the correct language.java.lang.Stringname(java.lang.String name)Converts a name into the format for the correct language.java.lang.StringsetterName(java.lang.String name)Converts a name into the format for the correct language.-
Methods inherited from class edu.wpi.grip.ui.codegeneration.TemplateMethods
get, parseSocketName, parseSocketType, parseSocketValue
-
-
-
-
Method Detail
-
name
public java.lang.String name(java.lang.String name)
Description copied from class:TemplateMethodsConverts a name into the format for the correct language.- Specified by:
namein classTemplateMethods- Parameters:
name- the unformatted name- Returns:
- the name after it has been formatted
-
getterName
public java.lang.String getterName(java.lang.String name)
Description copied from class:TemplateMethodsConverts a name into the format for the correct language.- Specified by:
getterNamein classTemplateMethods- Parameters:
name- the unformatted name- Returns:
- the name after it has been formatted
-
setterName
public java.lang.String setterName(java.lang.String name)
Description copied from class:TemplateMethodsConverts a name into the format for the correct language.- Specified by:
setterNamein classTemplateMethods- Parameters:
name- the unformatted name- Returns:
- the name after it has been formatted
-
callOp
public java.lang.String callOp(TStep step)
Description copied from class:TemplateMethodsConverts a step into a string the represents the call of the operation in the correct language. Used in the Templates- Specified by:
callOpin classTemplateMethods- Parameters:
step- the step that will be called- Returns:
- a string that is the call to the operation.
-
-