Class Format
- 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 Summary
Fields Modifier and Type Field Description static String
COMMENTS
Should method modifiers be included in the output.static String
LISTING
Bytecode listing.static String
MODE
Disassemble mode.static String
MODIFIERS
Should method modifiers be included in the output.static String
PRETTY
Pretty print the output.static String
WITH_LISTING
Bytecode listing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
comments()
Should comments be included in the output.String
listing()
Get the listing property.String
mode()
Get the mode property.boolean
modifiers()
Should method modifiers be included in the output.boolean
pretty()
Should the output be pretty printed.boolean
withListing()
Should listing be included in the output.
-
-
-
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
-
LISTING
public static final String LISTING
Bytecode listing. Expected to be a string 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
-
PRETTY
public static final String PRETTY
Pretty print the output. Expected to be a boolean value.- See Also:
- Constant Field Values
-
MODE
public static final String MODE
Disassemble mode. 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.
-
-
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.
-
-