Class PrimitiveType

  • Direct Known Subclasses:
    BooleanType, NumericType

    public class PrimitiveType
    extends Type
    Super class for boolean type, char type, and all numeric types.
    Version:
    0.1
    Author:
    Michael Bouschen
    • Constructor Detail

      • PrimitiveType

        public PrimitiveType​(String name,
                             Class clazz,
                             int enumType)
    • Method Detail

      • isCompatibleWith

        public boolean isCompatibleWith​(Type type)
        Description copied from class: Type
        Checks type compatibility.
        Specified by:
        isCompatibleWith in class Type
        Parameters:
        type - the type this is checked with.
        Returns:
        true if this is compatible with type; false otherwise.