java.lang.Object
org.eolang.jeo.representation.directives.Format

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

    • COMMENTS

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

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

      public static final String LISTING
      Bytecode listing. Expected to be a string value.
      See Also:
    • WITH_LISTING

      public static final String WITH_LISTING
      Bytecode listing. Expected to be a string value.
      See Also:
    • PRETTY

      public static final String PRETTY
      Pretty print the output. Expected to be a boolean value.
      See Also:
    • MODE

      public static final String MODE
      Disassemble mode. Expected to be a string value.
      See Also:
  • Constructor Details

    • 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 Details

    • 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.