Class NamedToolOutput

java.lang.Object
org.openjdk.asmtools.common.outputs.NamedToolOutput
All Implemented Interfaces:
ToolOutput
Direct Known Subclasses:
ByteOutput, FSOutput, PrintWriterOutput, TextOutput

public abstract class NamedToolOutput extends Object implements ToolOutput
Historically, the output loggers for compilers had two stderrs, one to stdout and second to stderr. That should be removed, in favour of just dual stream tool output, printing output to stdout and log into stderr
  • Field Details

    • fullyQualifiedName

      protected String fullyQualifiedName
    • destinationFileName

      protected String destinationFileName
      If the output is a file, then the destinationFileName is used to form the filename of the output. 1. File FILENAME or class file CLASSNAME takes the highest priority. This filename cannot be overridden. 2. Public class CLASSNAME { }– class name is CLASSNAME, and this CLASSNAME will be used to generate the filename (i.e., CLASSNAME.class). 3. this_class – The filename will be CLASSNAME.class, but the class name will be this_class.

      Also, if the -f option is used and the number of processed class files is more than 1, then destinationFileName will only apply to the first input file only. For example, if you run jdis -w . -f FILE input.class input2.class, then in the output directory, the files FILE.jasm and input2.jasm will be generated.

    • suffix

      private Optional<String> suffix
    • environment

      private Environment environment
  • Constructor Details

    • NamedToolOutput

      public NamedToolOutput()
  • Method Details