uk.ac.man.cs.rainbow
Class Compiler.PreciseError

java.lang.Object
  |
  +--uk.ac.man.cs.rainbow.Compiler.Error
        |
        +--uk.ac.man.cs.rainbow.Compiler.PreciseError
All Implemented Interfaces:
Serializable
Enclosing class:
Compiler

public abstract static class Compiler.PreciseError
extends Compiler.Error

A precisely-located error. This class allows the identification of an error to a particular column of a particular line. Subclass this class to use it.

See Also:
Serialized Form

Field Summary
 int column
          Narrow the location of the error to the exact column.
 
Fields inherited from class uk.ac.man.cs.rainbow.Compiler.Error
detail, line, message
 
Constructor Summary
protected Compiler.PreciseError(int line, int column, String message, String[] detail)
          Create a precisely-located error.
 
Method Summary
 String toTclString()
          Convert to a form that is convenient for transferring to a Tcl interpreter.
 
Methods inherited from class uk.ac.man.cs.rainbow.Compiler.Error
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

column

public final int column
Narrow the location of the error to the exact column.
Constructor Detail

Compiler.PreciseError

protected Compiler.PreciseError(int line,
                                int column,
                                String message,
                                String[] detail)
Create a precisely-located error.
Method Detail

toTclString

public String toTclString()
Description copied from class: Compiler.Error
Convert to a form that is convenient for transferring to a Tcl interpreter.
Overrides:
toTclString in class Compiler.Error
Following copied from class: uk.ac.man.cs.rainbow.Compiler.Error
Returns:
A Tcl-formatted list whose first member is the line field in this object, whose second member is the message field in this object, and whose third argument is a list of detail strings (built from the detail field in this class.)
See Also:
Utils.makeTclLine(String[])