Package org.openjdk.asmtools.common
Class Environment<T extends ToolLogger>
java.lang.Object
org.openjdk.asmtools.common.Environment<T>
- All Implemented Interfaces:
ILogger
- Direct Known Subclasses:
JasmEnvironment
,JcoderEnvironment
,JdecEnvironment
,JdisEnvironment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Environment.Builder<E extends Environment,
T extends ToolLogger> The Environment builder. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
private ToolInput
static final int
(package private) T
private ToolOutput
private boolean
private boolean
Fields inherited from interface org.openjdk.asmtools.common.ILogger
NOWHERE, TAB_REPLACEMENT, usagePattern
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected DataInputStream
Returns the name of the source file that is used by the tool to assemble the SourceFile attributeboolean
void
void
printException
(Throwable throwable) void
void
setInputFile
(ToolInput inputFileName) void
void
void
setToolOutput
(ToolOutput toolOutput) void
setTraceFlag
(boolean flag) setVerboseFlag
(boolean value) void
void
void
-
Field Details
-
OK
public static final int OK- See Also:
-
FAILED
public static final int FAILED- See Also:
-
toolLogger
T extends ToolLogger toolLogger -
inputFileName
-
toolOutput
-
verboseFlag
private boolean verboseFlag -
traceFlag
private boolean traceFlag
-
-
Constructor Details
-
Environment
- Parameters:
builder
- the environment builder
-
-
Method Details
-
setInputFile
- Throws:
IOException
URISyntaxException
-
setTraceFlag
public void setTraceFlag(boolean flag) -
setIgnoreWarningsOn
public void setIgnoreWarningsOn() -
setStrictWarningsOn
public void setStrictWarningsOn() -
getSimpleInputFileName
-
getSourceName
Returns the name of the source file that is used by the tool to assemble the SourceFile attribute- Returns:
- the name of the source file
-
getInputFile
-
getDataInputStream
- Returns:
- DataInputStream or null if the method can't read a file
- Throws:
URISyntaxException
IOException
-
traceln
-
trace
-
error
-
info
-
getInfo
-
usage
-
printException
- Specified by:
printException
in interfaceILogger
-
getOutputs
- Specified by:
getOutputs
in interfaceILogger
-
setOutputs
- Specified by:
setOutputs
in interfaceILogger
-
getToolOutput
- Specified by:
getToolOutput
in interfaceILogger
-
setToolOutput
- Specified by:
setToolOutput
in interfaceILogger
-
getVerboseFlag
public boolean getVerboseFlag() -
setVerboseFlag
-
getLogger
-