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 classEnvironment.Builder<E extends Environment,T extends ToolLogger> The Environment builder. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate ToolInputstatic final int(package private) Tprivate ToolOutputprivate booleanprivate booleanFields inherited from interface org.openjdk.asmtools.common.ILogger
NOWHERE, TAB_REPLACEMENT, usagePattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected DataInputStreamReturns the name of the source file that is used by the tool to assemble the SourceFile attributebooleanvoidvoidprintException(Throwable throwable) voidvoidsetInputFile(ToolInput inputFileName) voidvoidvoidsetToolOutput(ToolOutput toolOutput) voidsetTraceFlag(boolean flag) setVerboseFlag(boolean value) voidvoidvoid
-
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:
IOExceptionURISyntaxException
-
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:
URISyntaxExceptionIOException
-
traceln
-
trace
-
error
-
info
-
getInfo
-
usage
-
printException
- Specified by:
printExceptionin interfaceILogger
-
getOutputs
- Specified by:
getOutputsin interfaceILogger
-
setOutputs
- Specified by:
setOutputsin interfaceILogger
-
getToolOutput
- Specified by:
getToolOutputin interfaceILogger
-
setToolOutput
- Specified by:
setToolOutputin interfaceILogger
-
getVerboseFlag
public boolean getVerboseFlag() -
setVerboseFlag
-
getLogger
-