|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.util.Utils
at.dms.kjc.CContext
at.dms.kjc.CMethodContext
public class CMethodContext
This class represents a method context during check
CContext
,
CCompilationUnitContext
,
CClassContext
,
CMethodContext
,
CConstructorContext
,
CInitializerContext
,
CBodyContext
,
CBlockContext
,
Serialized FormField Summary | |
---|---|
protected Hashtable |
labels
|
protected Hashtable<Serializable,CThrowableInfo> |
throwables
|
Fields inherited from class at.dms.kjc.CContext |
---|
parent |
Fields inherited from class at.dms.util.Utils |
---|
EMPTY_LIST, getForLoopCallers |
Fields inherited from interface at.dms.kjc.Constants |
---|
CMP_VERSION, JAV_CLASS, JAV_CLONE, JAV_CLONEABLE, JAV_CONSTRUCTOR, JAV_ERROR, JAV_EXCEPTION, JAV_INIT, JAV_LENGTH, JAV_NAME_SEPARATOR, JAV_OBJECT, JAV_OUTER_THIS, JAV_RUNTIME, JAV_RUNTIME_EXCEPTION, JAV_STATIC_INIT, JAV_STRING, JAV_STRINGBUFFER, JAV_THIS, JAV_THROWABLE, OPE_BAND, OPE_BNOT, OPE_BOR, OPE_BSR, OPE_BXOR, OPE_EQ, OPE_GE, OPE_GT, OPE_LE, OPE_LNOT, OPE_LT, OPE_MINUS, OPE_NE, OPE_PERCENT, OPE_PLUS, OPE_POSTDEC, OPE_POSTINC, OPE_PREDEC, OPE_PREINC, OPE_SIMPLE, OPE_SL, OPE_SLASH, OPE_SR, OPE_STAR, TID_ARRAY, TID_BIT, TID_BOOLEAN, TID_BYTE, TID_CHAR, TID_CLASS, TID_DOUBLE, TID_FLOAT, TID_INT, TID_LONG, TID_SHORT, TID_VECTOR, TID_VOID, VECTOR_EMPTY |
Constructor Summary | |
---|---|
protected |
CMethodContext()
|
Method Summary | |
---|---|
void |
addThrowable(CThrowableInfo throwable)
|
void |
close(TokenReference ref)
Verify that all checked exceptions are defined in the throw list and return types are valid |
Object |
deepClone()
Returns a deep clone of this object. |
protected void |
deepCloneInto(CMethodContext other)
Clones all fields of this into |
CClassContext |
getClassContext()
getClassContext |
CMethod |
getCMethod()
getCMethod |
CMethodContext |
getMethodContext()
getMethod |
Hashtable<Serializable,CThrowableInfo> |
getThrowables()
|
boolean |
isStaticContext()
JLS 8.1.2: A statement or expression occurs in a static context if and only if the innermost method, constructor, instance initializer, static initializer, field initializer, or explicit constructor statement enclosing the statement or expression is a static method, a static initializer, the variable initializer of a static variable, or an explicit constructor invocation statement |
int |
localsPosition()
|
Methods inherited from class at.dms.kjc.CContext |
---|
addSourceClass, check, check, check, check, deepCloneInto, dumpContext, dumpContext, dumpIndent, fail, fail, getBlockContext, getCompilationUnitContext, getFieldInfo, getFieldInfo, getParentContext, lookupClass, lookupField, lookupLocalVariable, lookupMethod, reportTrouble, setFieldInfo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Hashtable<Serializable,CThrowableInfo> throwables
protected Hashtable labels
Constructor Detail |
---|
protected CMethodContext()
Method Detail |
---|
public void close(TokenReference ref) throws PositionedError
UnpositionedError
- this error will be positioned soon
PositionedError
public boolean isStaticContext()
isStaticContext
in class CContext
public CClassContext getClassContext()
getClassContext
in class CContext
public CMethod getCMethod()
public CMethodContext getMethodContext()
getMethodContext
in class CContext
public int localsPosition()
public void addThrowable(CThrowableInfo throwable)
throwable
- the type of the new throwablepublic Hashtable<Serializable,CThrowableInfo> getThrowables()
public Object deepClone()
deepClone
in interface DeepCloneable
deepClone
in class CContext
protected void deepCloneInto(CMethodContext other)
other
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |