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 StringCOMMENTSShould method modifiers be included in the output.static StringLISTINGBytecode listing.static StringMODEDisassemble mode.static StringMODIFIERSShould method modifiers be included in the output.static StringPRETTYPretty print the output.static StringWITH_LISTINGBytecode listing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancomments()Should comments be included in the output.Stringlisting()Get the listing property.Stringmode()Get the mode property.booleanmodifiers()Should method modifiers be included in the output.booleanpretty()Should the output be pretty printed.booleanwithListing()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.
-
-