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

    • setToolInput

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

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

      public void error(long 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>
    • getCount

      public long getCount(EMessageKind kind)
    • hasMessages

      public boolean hasMessages()
    • lineNumber

      public long lineNumber(long where)
    • lineOffset

      public long lineOffset(long lineNumber, long where)
    • throwErrorException

      public void throwErrorException(String id, Object... args) throws Error
      Throws an error 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(long where, String id, Object... args) throws Error
      Throws an error 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 long getPosition()
    • read

      public int read()
    • lookForward

      public int lookForward()
    • convertUnicode

      public int convertUnicode()