Package org.openjdk.asmtools.jcoder
Class JcoderEnvironment
java.lang.Object
org.openjdk.asmtools.common.Environment<CompilerLogger>
org.openjdk.asmtools.jcoder.JcoderEnvironment
- All Implemented Interfaces:
ILogger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class
(package private) static class
Nested classes/interfaces inherited from class org.openjdk.asmtools.common.Environment
Environment.Builder<E extends Environment,
T extends ToolLogger> -
Field Summary
FieldsFields inherited from class org.openjdk.asmtools.common.Environment
FAILED, OK
Fields inherited from interface org.openjdk.asmtools.common.ILogger
NOWHERE, TAB_REPLACEMENT
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
void
int
flush
(boolean printTotals) long
int
boolean
int
read()
void
setInputFile
(ToolInput inputFileName) void
void
Methods inherited from class org.openjdk.asmtools.common.Environment
getDataInputStream, getInputFile, getLogger, getOutputs, getSimpleInputFileName, getToolOutput, getVerboseFlag, info, printException, setIgnoreWarnings, setOutputs, setStrictWarnings, setToolOutput, setTraceFlag, setVerboseFlag, trace, traceln
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openjdk.asmtools.common.ILogger
error, getResourceString, print, print, printErrorLn, println, println
-
Field Details
-
inputFile
JcoderEnvironment.InputFile inputFile
-
-
Constructor Details
-
JcoderEnvironment
- Parameters:
builder
- the jcoder environment builder
-
-
Method Details
-
setInputFile
- Overrides:
setInputFile
in classEnvironment<CompilerLogger>
- Throws:
IOException
URISyntaxException
-
warning
-
error
-
warning
-
error
- Specified by:
error
in interfaceILogger
- Overrides:
error
in classEnvironment<CompilerLogger>
-
getErrorCount
public long getErrorCount() -
hasMessages
public boolean hasMessages() -
flush
public int flush(boolean printTotals) - Parameters:
printTotals
- whether to print the total line: N warning(s), K error(s)- Returns:
- 0 if there are no errors otherwise a number of errors
-
getPosition
public int getPosition() -
read
- Throws:
IOException
-
close
public void close()
-