edu.princeton.toy
Class TProgramDocument.WarningInfoStruct

java.lang.Object
  extended by edu.princeton.toy.TProgramDocument.WarningInfoStruct
Enclosing class:
TProgramDocument

public static class TProgramDocument.WarningInfoStruct
extends Object

WarningInfoStruct is a simple class which encapsulates all of the info that getWarnings() has to return.


Field Summary
 boolean hasFatalError
           
 int[] selectionEnd
           
 int[] selectionStart
           
 int warningCount
           
 String[] warnings
           
 
Constructor Summary
TProgramDocument.WarningInfoStruct()
          Creates a new WarningInfoStruct.
 
Method Summary
 boolean equals(Object object)
          Returns wheter or not this WarningInfoStruct conveys the same information as another.
 boolean selectionsEqual(TProgramDocument.WarningInfoStruct warningInfo)
          Returns wheter or not this WarningInfoStruct conveys the same information as another (except possibly warnings).
 boolean warningsEqual(TProgramDocument.WarningInfoStruct warningInfo)
          Returns wheter or not this WarningInfoStruct conveys the same information as another (except possibly selectionStart and selectionEnd).
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hasFatalError

public boolean hasFatalError

warningCount

public int warningCount

warnings

public final String[] warnings

selectionStart

public final int[] selectionStart

selectionEnd

public final int[] selectionEnd
Constructor Detail

TProgramDocument.WarningInfoStruct

public TProgramDocument.WarningInfoStruct()
Creates a new WarningInfoStruct.

Method Detail

equals

public boolean equals(Object object)
Returns wheter or not this WarningInfoStruct conveys the same information as another.

Overrides:
equals in class Object
Parameters:
object - The other object to compare this WarningInfoStruct to.
Returns:
True iff the other object is a non-null instance of WarningInfoStruct which contains the same information as this WarningInfoStruct.

selectionsEqual

public boolean selectionsEqual(TProgramDocument.WarningInfoStruct warningInfo)
Returns wheter or not this WarningInfoStruct conveys the same information as another (except possibly warnings).

Parameters:
warningInfo - The other WarningInfoStruct to compare this WarningInfoStruct to.
Returns:
True iff the other object is a non-null instance of WarningInfoStruct which contains the same information (except possibly warnings) as this WarningInfoStruct.

warningsEqual

public boolean warningsEqual(TProgramDocument.WarningInfoStruct warningInfo)
Returns wheter or not this WarningInfoStruct conveys the same information as another (except possibly selectionStart and selectionEnd).

Parameters:
warningInfo - The other WarningInfoStruct to compare this WarningInfoStruct to.
Returns:
True iff the other object is a non-null instance of WarningInfoStruct which contains the same information (except possibly selectionStart and selectionEnd) as this WarningInfoStruct.