Package org.openjdk.asmtools.jasm
Class Environment
java.lang.Object
org.openjdk.asmtools.jasm.Environment
An input stream for java programs. The stream treats either "\n", "\r" or "\r\n" as the
end of a line, it always returns \n. It also parses UNICODE characters expressed as
. However, if it sees "\\", the second slash cannot begin a unicode sequence. It
keeps track of the current position in the input stream.
An position consists of: ((linenr << OFFSETBITS) | offset) this means that both
the line number and the exact offset into the file are encoded in each position
value.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final I18NResourceBundle
int
The number of errors and warningsint
int
-
Constructor Summary
ConstructorsConstructorDescriptionEnvironment
(DataInputStream dis, String inputFileName, PrintWriter out, boolean nowarn) -
Method Summary
-
Field Details
-
out
-
pos
public int pos -
nerrors
public int nerrorsThe number of errors and warnings -
nwarnings
public int nwarnings -
i18n
-
-
Constructor Details
-
Environment
public Environment(DataInputStream dis, String inputFileName, PrintWriter out, boolean nowarn) throws IOException - Throws:
IOException
-
-
Method Details
-
getInputFileName
-
getSimpleInputFileName
-
read
public int read() -
flushErrors
public void flushErrors()Flush outstanding errors -
output
Output a string. This can either be an error message or something for debugging. This should be used instead of print. -
outputln
Output a string. This can either be an error message or something for debugging. This should be used instead of println. -
error
Issue an error -
error
-
error
-
error
-
error
-
error
-
error
-
error
-
errorStr
-
errorStr
-
errorStr
-
errorStr
-
isTraceEnabled
public boolean isTraceEnabled() -
isDebugEnabled
public boolean isDebugEnabled()
-