Package de.monticore.types
Class MCBasicTypesHelper
java.lang.Object
de.monticore.types.MCBasicTypesHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringprimitiveConst2Name(int typeConstant) Map the integer e.g.static intprimitiveName2Const(String typeName) Map the String with a primitive type, e.g.
-
Constructor Details
-
MCBasicTypesHelper
public MCBasicTypesHelper()
-
-
Method Details
-
primitiveName2Const
Map the String with a primitive type, e.g. "int" to its enumerative Number, e.g. ASTConstantsMCBasicTypes.INT Returns -1 if illegal name; no error message- Parameters:
typeName-- Returns:
-
primitiveConst2Name
Map the integer e.g. ASTConstantsMCBasicTypes.INT to the respective String with a primitive type, e.g. "int" Returns "unknownType" if illegal number; no error message- Parameters:
typeConstant-- Returns:
-