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 classNested classes/interfaces inherited from class Environment
Environment.Builder<E,T> -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final CFVersion(package private) JcoderEnvironment.InputFileFields inherited from class Environment
FAILED, OKFields inherited from interface ILogger
NOWHERE, TAB_REPLACEMENT, usagePattern -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidintflush(boolean printTotals) longlongbooleanintread()voidsetToolInput(ToolInput toolInput) voidvoidMethods inherited from class Environment
error, getDataInputStream, getInfo, getLogger, getOutputs, getSimpleInputFileName, getSourceName, getToolInput, getToolOutput, getVerboseFlag, info, isIgnorePackage, isTraceFlag, printException, setIgnorePackage, setIgnoreWarningsOn, setOutputs, setStrictWarningsOn, setToolOutput, setTraceFlag, setVerboseFlag, trace, trace, traceln, traceln, usage, usageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ILogger
getCount, getResourceString, print, print, printErrorLn, println, println
-
Field Details
-
cfv
-
inputFile
JcoderEnvironment.InputFile inputFile
-
-
Constructor Details
-
JcoderEnvironment
- Parameters:
builder- the jcoder environment builder
-
-
Method Details
-
setToolInput
- Overrides:
setToolInputin classEnvironment<CompilerLogger>- Throws:
IOExceptionURISyntaxException
-
warning
-
error
-
warning
-
error
- Specified by:
errorin interfaceILogger- Overrides:
errorin 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 long getPosition() -
read
- Throws:
IOException
-