Package org.openjdk.asmtools.common
Class ToolLogger
java.lang.Object
org.openjdk.asmtools.common.ToolLogger
- All Implemented Interfaces:
ILogger
- Direct Known Subclasses:
CompilerLogger
,DecompilerLogger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static final record
(package private) class
private static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
private String
(package private) DualStreamToolOutput
private final String
private String
protected boolean
private ToolLogger.ToolResources
Fields inherited from interface org.openjdk.asmtools.common.ILogger
NOWHERE, TAB_REPLACEMENT, usagePattern
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResourceString
(String id, Object... args) getResourceString
(EMessageKind kind, String id, Object... args) void
printException
(Throwable throwable) void
setInputFileName
(ToolInput inputFileName) void
setOutputs
(DualStreamToolOutput nwoutput) abstract void
-
Field Details
-
ignoreWarnings
protected boolean ignoreWarnings -
strictWarnings
protected boolean strictWarnings -
programName
-
toolResources
-
outerLog
DualStreamToolOutput outerLog -
inputFileName
-
simpleInputFileName
-
-
Constructor Details
-
ToolLogger
- Parameters:
programName
- the tool namecls
- the environment class of the tool for which to obtain the resource bundleouterLog
- the logger stream
-
-
Method Details
-
getResourceString
- Specified by:
getResourceString
in interfaceILogger
-
setInputFileName
- Throws:
IOException
-
getResourceString
-
getOutputs
- Specified by:
getOutputs
in interfaceILogger
-
setOutputs
- Specified by:
setOutputs
in interfaceILogger
-
getSimpleInputFileName
-
printException
- Specified by:
printException
in interfaceILogger
-
getProgramName
-
usage
-