Class JasmEnvironment

java.lang.Object
org.openjdk.asmtools.common.Environment<CompilerLogger>
org.openjdk.asmtools.jasm.JasmEnvironment
All Implemented Interfaces:
ILogger

public class JasmEnvironment extends Environment<CompilerLogger>
  • Field Details

  • Constructor Details

  • Method Details

    • setInputFile

      public void setInputFile(ToolInput inputFileName) throws IOException, URISyntaxException
      Overrides:
      setInputFile in class Environment<CompilerLogger>
      Throws:
      IOException
      URISyntaxException
    • warning

      public void warning(int where, String id, Object... args)
    • error

      public void error(int where, String id, Object... args)
    • warning

      public void warning(String id, Object... args)
    • error

      public void error(String id, Object... args)
      Specified by:
      error in interface ILogger
      Overrides:
      error in class Environment<CompilerLogger>
    • getErrorCount

      public long getErrorCount()
    • hasMessages

      public boolean hasMessages()
    • lineNumber

      public int lineNumber(int where)
    • throwErrorException

      public void throwErrorException(String id, Object... args) throws Error
      Throws an error that is not associated with scanner position in an input file
      Parameters:
      id - id of a string resource in I18NResourceBundle
      args - arguments referenced by the format specifiers in the resource string
      Throws:
      Error - exception
    • throwErrorException

      public void throwErrorException(int where, String id, Object... args) throws Error
      Throws an error that is associated with scanner position in an input file
      Parameters:
      where - position in an input file
      id - id of a string resource in I18NResourceBundle
      args - 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 int getPosition()
    • read

      public int read()
    • lookForward

      public int lookForward()
    • convertUnicode

      public int convertUnicode()