Class Format


  • public final class Format
    extends Object
    Output format of the XMIR representation.
    Since:
    0.14.0
    • Field Detail

      • COMMENTS

        public static final String COMMENTS
        Should method modifiers be included in the output. Expected to be a boolean value.
        See Also:
        Constant Field Values
      • MODIFIERS

        public static final String MODIFIERS
        Should method modifiers be included in the output. Expected to be a boolean value.
        See Also:
        Constant Field Values
      • WITH_LISTING

        public static final String WITH_LISTING
        Bytecode listing. Expected to be a string value.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Format

        public Format​(Object... pairs)
        Prepare pairs of properties.
        Parameters:
        pairs - Pairs of properties, each pair consists of a name and a value.
      • Format

        public Format​(Format format,
                      Object... pairs)
        Prepare pairs of properties.
        Parameters:
        format - Existing format to extend.
        pairs - Pairs of properties, each pair consists of a name and a value.
    • Method Detail

      • modifiers

        public boolean modifiers()
        Should method modifiers be included in the output.
        Returns:
        True if modifiers are included, false otherwise.
      • comments

        public boolean comments()
        Should comments be included in the output.
        Returns:
        True if comments are included, false otherwise.
      • pretty

        public boolean pretty()
        Should the output be pretty printed.
        Returns:
        True if pretty printing is enabled, false otherwise.
      • listing

        public String listing()
        Get the listing property.
        Returns:
        Listing value of the property.
      • withListing

        public boolean withListing()
        Should listing be included in the output.
        Returns:
        True if listing is included, false otherwise.
      • mode

        public String mode()
        Get the mode property.
        Returns:
        Mode value of the property.