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 booleanstatic final intprivate ToolInput(package private) Tprivate ToolOutputprivate booleanprivate booleanFields inherited from interface ILogger
NOWHERE, TAB_REPLACEMENT, usagePattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected DataInputStreamReturns the name of the source file that is used by the tool to assemble the SourceFile attributebooleanvoidbooleanbooleanvoidprintException(Throwable throwable) setIgnorePackage(boolean ignorePackage) voidvoidvoidvoidsetToolInput(ToolInput toolInput) voidsetToolOutput(ToolOutput toolOutput) voidsetTraceFlag(boolean flag) setVerboseFlag(boolean value) voidvoidvoidvoidvoidvoid
-
Field Details
-
OK
public static final int OK- See Also:
-
FAILED
public static final int FAILED- See Also:
-
toolLogger
T extends ToolLogger toolLogger -
ignorePackage
private boolean ignorePackage -
toolInput
-
toolOutput
-
verboseFlag
private boolean verboseFlag -
traceFlag
private boolean traceFlag
-
-
Constructor Details
-
Environment
- Parameters:
builder- the environment builder
-
-
Method Details
-
isTraceFlag
public boolean isTraceFlag() -
setToolInput
- Throws:
IOExceptionURISyntaxException
-
setTraceFlag
public void setTraceFlag(boolean flag) -
setIgnoreWarningsOn
public void setIgnoreWarningsOn() -
setStrictWarningsOn
public void setStrictWarningsOn() -
isIgnorePackage
public boolean isIgnorePackage() -
setIgnorePackage
-
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
-
getToolInput
-
getDataInputStream
- Returns:
- DataInputStream or null if the method can't read a file
- Throws:
URISyntaxExceptionIOException
-
traceln
-
traceln
-
trace
-
error
-
error
-
trace
-
info
-
getInfo
-
usage
-
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
-