|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.overturetool.vdmj.typechecker.Environment
org.overturetool.vdmj.typechecker.ModuleEnvironment
public class ModuleEnvironment
Define the type checking environment for a modular specification.
| Field Summary |
|---|
| Fields inherited from class org.overturetool.vdmj.typechecker.Environment |
|---|
funcDefinition, outer |
| Constructor Summary | |
|---|---|
ModuleEnvironment(Module module)
|
|
| Method Summary | |
|---|---|
ClassDefinition |
findClassDefinition()
Find the enclosing class definition, if any. |
DefinitionSet |
findMatches(LexNameToken name)
Find functions and operations of the given basic name. |
Definition |
findName(LexNameToken name,
NameScope scope)
Find a name in the environment of the given scope. |
StateDefinition |
findStateDefinition()
Find the state defined in the environment, if any. |
Definition |
findType(LexNameToken name)
Find a type in the environment. |
boolean |
isStatic()
True if the calling context is a static function or operation. |
boolean |
isSystem()
True if this is a VDM-RT "system" environment. |
boolean |
isVDMPP()
True if this is a VDM++ environment. |
java.lang.String |
toString()
|
void |
unusedCheck()
Check whether any definitions in the environment were unused. |
| Methods inherited from class org.overturetool.vdmj.typechecker.Environment |
|---|
dupHideCheck, getFuncDefinition, listAlternatives, setFuncDefinition, unusedCheck |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ModuleEnvironment(Module module)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
public Definition findName(LexNameToken name,
NameScope scope)
Environment
findName in class Environmentpublic Definition findType(LexNameToken name)
Environment
findType in class Environmentpublic DefinitionSet findMatches(LexNameToken name)
Environment
findMatches in class Environmentpublic void unusedCheck()
Environment
unusedCheck in class Environmentpublic StateDefinition findStateDefinition()
Environment
findStateDefinition in class Environmentpublic boolean isVDMPP()
Environment
isVDMPP in class Environmentpublic boolean isSystem()
Environment
isSystem in class Environmentpublic ClassDefinition findClassDefinition()
Environment
findClassDefinition in class Environmentpublic boolean isStatic()
Environment
isStatic in class Environment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||