Next: Class and interface types
Up: Types and type identifiers
Previous: Types and type identifiers
Primitive types defined by Java are represented in the text of a program by
keywords:
RULE: PrimitiveType ::= 'boolean' COMPUTE
PrimitiveType.Type=boolType;
END;
RULE: PrimitiveType ::= 'byte' COMPUTE
PrimitiveType.Type=byteType;
END;
RULE: PrimitiveType ::= 'short' COMPUTE
PrimitiveType.Type=shortType;
END;
RULE: PrimitiveType ::= 'int' COMPUTE
PrimitiveType.Type=intType;
END;
RULE: PrimitiveType ::= 'long' COMPUTE
PrimitiveType.Type=longType;
END;
RULE: PrimitiveType ::= 'char' COMPUTE
PrimitiveType.Type=charType;
END;
RULE: PrimitiveType ::= 'float' COMPUTE
PrimitiveType.Type=floatType;
END;
RULE: PrimitiveType ::= 'double' COMPUTE
PrimitiveType.Type=doubleType;
END;
This macro is invoked in definition 14.
2008-09-11