isPrimitive method

bool isPrimitive()

Implementation

bool isPrimitive() {
  return getType() == 'int' ||
      getType() == 'double' ||
      getType() == 'String' ||
      getType() == 'bool' ||
      getType() == 'DateTime' ||
      getType() == 'enum';
}