mjc

org.multijava.mjc
Class CThrowableInfo

java.lang.Object
  extended byorg.multijava.util.Utils
      extended byorg.multijava.mjc.CThrowableInfo
All Implemented Interfaces:
Cloneable

public class CThrowableInfo
extends Utils

This class represents information on the sorts of exceptions that can be thrown in a particular context. It is used during the checking passes (checkInterface, checkInitializers, and typecheck).

See Also:
CFlowControlContextType

Field Summary
private  boolean catched
           
private  JPhylum location
           
private  CClassType throwable
           
 
Fields inherited from class org.multijava.util.Utils
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO
 
Constructor Summary
CThrowableInfo(CClassType throwable, JPhylum location)
          Constructs an informztion handler
 
Method Summary
 boolean equals(Object o)
           
 JPhylum getLocation()
          Return the location of this throwable
 CClassType getThrowable()
          getVar
 int hashCode()
           
 boolean isCatched()
          Return true if this throwable is catched
 void setCatched(boolean catched)
          Sets this throwable to be cached or not
 
Methods inherited from class org.multijava.util.Utils
assertTrue, assertTrue, combineArrays, escapeString, escapeString, fail, fail, getFilePath, hasFlag, hasOtherFlags, parsePathParts, relativePathTo, splitQualifiedName, splitQualifiedName, stripJavaModifiers, stripNonJavaModifiers, stripPrivateModifier, unescapeString, vectorToArray, vectorToIntArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

throwable

private CClassType throwable

location

private JPhylum location

catched

private boolean catched
Constructor Detail

CThrowableInfo

public CThrowableInfo(CClassType throwable,
                      JPhylum location)
Constructs an informztion handler

Parameters:
throwable - the type of exception
location - the throw statement
Method Detail

getThrowable

public CClassType getThrowable()
getVar

Returns:
the variable definition

getLocation

public JPhylum getLocation()
Return the location of this throwable


setCatched

public void setCatched(boolean catched)
Sets this throwable to be cached or not


isCatched

public boolean isCatched()
Return true if this throwable is catched


equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

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.