Class MCBasicTypesHelper

java.lang.Object
de.monticore.types.MCBasicTypesHelper

public class MCBasicTypesHelper extends Object
  • Constructor Details

    • MCBasicTypesHelper

      public MCBasicTypesHelper()
  • Method Details

    • primitiveName2Const

      public static int primitiveName2Const(String typeName)
      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

      public static String primitiveConst2Name(int typeConstant)
      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: