Class BaseField

    • Constructor Detail

      • BaseField

        public BaseField​(Type type)
        Constructor for BaseField.
        Parameters:
        type - The field type.
        Throws:
        IllegalArgumentException - if type is null;
    • Method Detail

      • getType

        public Type getType()
        Description copied from interface: Field
        Get the field type.
        Specified by:
        getType in interface Field
        Returns:
        the field type
      • toString

        public abstract void toString​(StringBuilder buf,
                                      int indentLevel)
        Description copied from interface: Field
        Convert to a string
        Specified by:
        toString in interface Field
        Parameters:
        buf - buffer for the result
        indentLevel - the indentation level
      • toString

        public void toString​(StringBuilder buf)
        Description copied from interface: Field
        Convert to a string
        Specified by:
        toString in interface Field
        Parameters:
        buf - the buffer for the result
      • toString

        public String toString()
        Description copied from interface: Field
        Implement standard toString().
        Specified by:
        toString in interface Field
        Overrides:
        toString in class Object
        Returns:
        The field as a String