at.dms.kjc
Class CThrowableInfo

java.lang.Object
  extended by at.dms.util.Utils
      extended by at.dms.kjc.CThrowableInfo
All Implemented Interfaces:
DeepCloneable, Serializable

public class CThrowableInfo
extends Utils

This class represents a throw

throwable
information during check

See Also:
Serialized Form

Field Summary
 
Fields inherited from class at.dms.util.Utils
EMPTY_LIST, getForLoopCallers
 
Constructor Summary
CThrowableInfo(CClassType throwable, JPhylum location)
          Constructs an informztion handler
 
Method Summary
 Object deepClone()
          Returns a deep clone of this object.
protected  void deepCloneInto(CThrowableInfo other)
          Clones all fields of this into
 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 at.dms.util.Utils
asPercent, cellMathEquivalent, cMathEquivalent, cppMathEquivalent, deepCloneInto, equalArrays, fail, getEnvironmentVariable, getExpression, hasPeeks, initArray, initArray, initLiteralArray, intArrayToList, isMathMethod, isUniform, kopi_assert, kopi_assert, makeCountdownForLoop, makeDotFileName, makeForLoop, makeForLoop, makeForLoop, makeForLoopFieldIndex, makeForLoopLocalIndex, nextPow2, passThruParens, peelMarkers, popBeforePeek, readFile, removeUnusedPops, replaceAll, setupDotFileName, simplifyMathMethod, splitQualifiedName, splitQualifiedName, toArray, toIntArray, toVector, voidToInt, writeFile
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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

deepClone

public Object deepClone()
Returns a deep clone of this object.

Specified by:
deepClone in interface DeepCloneable
Overrides:
deepClone in class Utils

deepCloneInto

protected void deepCloneInto(CThrowableInfo other)
Clones all fields of this into
other