|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This class represents the context for a constructor during checking passes (checkInterface, checkInitializers, typecheck). It includes data on whether the constructor calls a super constructor.
CContextType| Method Summary | |
boolean |
isInConstructor()
Indicates whether this context is enclosed in a constructor. |
boolean |
isSuperConstructorCalled()
|
void |
setSuperConstructorCalled(boolean b)
|
void |
verifyExceptions(TokenReference ref)
Verifies that all checked exceptions are defined in the throw list. |
| Methods inherited from interface org.multijava.mjc.CMethodContextType |
addThrowable, createFlowControlContext, createFlowControlContext, getCMethod, getMethodContext, isInInitializer, isPure, isStatic, throwables |
| Method Detail |
public void verifyExceptions(TokenReference ref)
throws PositionedError
verifyExceptions in interface CMethodContextTypePositionedError - if checks fail public boolean isInConstructor()
isInConstructor in interface CMethodContextTypepublic void setSuperConstructorCalled(boolean b)
public boolean isSuperConstructorCalled()
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||