mjc

org.multijava.mjc
Class CLineError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.multijava.util.FormattedException
              extended byorg.multijava.util.compiler.PositionedError
                  extended byorg.multijava.mjc.CBlockError
                      extended byorg.multijava.mjc.CLineError
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CExpressionError

public class CLineError
extends CBlockError

This class represents Line errors in error hierarchy. These are errors that are detected while typechecking method, constructor, and initializer bodies. The fail method of JPhylum is overridden for statements, expressions, and switch labels to convert an error message into a CLineError (as opposed to just reporting the error via the context).


Field Summary
 
Fields inherited from class org.multijava.util.compiler.PositionedError
 
Fields inherited from class org.multijava.util.FormattedException
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
CLineError(TokenReference where, Message message)
          An error with a formatted message as argument
CLineError(TokenReference where, MessageDescription description)
          An error without parameters
CLineError(TokenReference where, MessageDescription description, Object parameter)
          An error with one parameter
CLineError(TokenReference where, MessageDescription description, Object parameter1, Object parameter2)
          An error with two parameters
CLineError(TokenReference where, MessageDescription description, Object[] parameters)
          An error with an arbitrary number of parameters
 
Method Summary
 
Methods inherited from class org.multijava.util.compiler.PositionedError
getMessage, getTokenReference
 
Methods inherited from class org.multijava.util.FormattedException
getErrorMessage, getFormattedMessage, hasDescription
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CLineError

public CLineError(TokenReference where,
                  Message message)
An error with a formatted message as argument

Parameters:
where - the position in the source code
message - the formatted message

CLineError

public CLineError(TokenReference where,
                  MessageDescription description,
                  Object[] parameters)
An error with an arbitrary number of parameters

Parameters:
where - the position in the source code
description - the message description
parameters - the array of parameters

CLineError

public CLineError(TokenReference where,
                  MessageDescription description,
                  Object parameter1,
                  Object parameter2)
An error with two parameters

Parameters:
where - the position in the source code
description - the message description
parameter1 - the first parameter
parameter2 - the second parameter

CLineError

public CLineError(TokenReference where,
                  MessageDescription description,
                  Object parameter)
An error with one parameter

Parameters:
where - the position in the source code
description - the message description
parameter - the parameter

CLineError

public CLineError(TokenReference where,
                  MessageDescription description)
An error without parameters

Parameters:
where - the position in the source code
description - the message description

mjc

mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.