|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This class represents the context for a method during checking passes (checkInterface, checkInitializers, typecheck).
CContextType| Method Summary | |
void |
addThrowable(CThrowableInfo throwable)
Registers that the given throwable can be thrown within this context. |
CFlowControlContextType |
createFlowControlContext(int localVars,
boolean isInExternalGF,
TokenReference where)
|
CFlowControlContextType |
createFlowControlContext(int localVars,
TokenReference where)
|
CMethod |
getCMethod()
Returns the signature of the method declaration in which this context is enclosed, or null if this context is not enclosed in a method declaration. |
CMethodContextType |
getMethodContext()
Returns the nearest surrounding context of type CMethodContextType. |
boolean |
isInConstructor()
Indicates whether this context is enclosed in a constructor. |
boolean |
isInInitializer()
Indicates whether this context is enclosed in an instance or static initializer. |
boolean |
isPure()
Indicates whether this context is "pure". |
boolean |
isStatic()
Indicates whether this context is "static". |
Set |
throwables()
|
void |
verifyExceptions(TokenReference ref)
Verifies that all checked exceptions are defined in the throw list. |
| Method Detail |
public void verifyExceptions(TokenReference ref)
throws PositionedError
PositionedError - if checks fail
public CFlowControlContextType createFlowControlContext(int localVars,
TokenReference where)
public CFlowControlContextType createFlowControlContext(int localVars,
boolean isInExternalGF,
TokenReference where)
public CMethod getCMethod()
getCMethod in interface CContextTypepublic CMethodContextType getMethodContext()
getMethodContext in interface CContextTypepublic boolean isInInitializer()
isInInitializer in interface CContextTypepublic boolean isInConstructor()
isInConstructor in interface CContextTypepublic boolean isStatic()
isStatic in interface CContextTypepublic boolean isPure()
isPure in interface CContextTypepublic void addThrowable(CThrowableInfo throwable)
throwable - the type of the new throwable public Set throwables()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||