Class JasmEnvironment
- All Implemented Interfaces:
ILogger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class(package private) static classNested classes/interfaces inherited from class Environment
Environment.Builder<E,T> -
Field Summary
FieldsFields inherited from class Environment
FAILED, OKFields inherited from interface ILogger
NOWHERE, TAB_REPLACEMENT, usagePattern -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate -
Method Summary
Modifier and TypeMethodDescriptionintvoidvoidintflush(boolean printTotals) longgetCount(EMessageKind kind) longbooleanlonglineNumber(long where) longlineOffset(long lineNumber, long where) intintread()voidsetToolInput(ToolInput toolInput) voidthrowErrorException(long where, String id, Object... args) Throws an error associated with scanner position in an input filevoidthrowErrorException(String id, Object... args) Throws an error not associated with scanner position in an input filevoidvoidMethods 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
getResourceString, print, print, printErrorLn, println, println
-
Field Details
-
inputFile
JasmEnvironment.InputFile inputFile
-
-
Constructor Details
-
JasmEnvironment
- Parameters:
builder- the jasm environment builder
-
-
Method Details
-
setToolInput
- Overrides:
setToolInputin classEnvironment<CompilerLogger>- Throws:
IOExceptionURISyntaxException
-
warning
-
error
-
warning
-
error
- Specified by:
errorin interfaceILogger- Overrides:
errorin classEnvironment<CompilerLogger>
-
getCount
-
hasMessages
public boolean hasMessages() -
lineNumber
public long lineNumber(long where) -
lineOffset
public long lineOffset(long lineNumber, long where) -
throwErrorException
Throws an error not associated with scanner position in an input file- Parameters:
id- id of a string resource in I18NResourceBundleargs- arguments referenced by the format specifiers in the resource string- Throws:
Error- exception
-
throwErrorException
Throws an error associated with scanner position in an input file- Parameters:
where- position in an input fileid- id of a string resource in I18NResourceBundleargs- arguments referenced by the format specifiers in the resource string- Throws:
Error- exception
-
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 count of errors
-
getPosition
public long getPosition() -
read
public int read() -
lookForward
public int lookForward() -
convertUnicode
public int convertUnicode()
-