maj.semant
Class MajCompoundStmtsScope

java.lang.Object
  extended bymaj.semant.MajCompoundStmtsScope
All Implemented Interfaces:
MajScope

public class MajCompoundStmtsScope
extends java.lang.Object
implements MajScope


Constructor Summary
MajCompoundStmtsScope(MajScope parentScope)
           
 
Method Summary
 void addImport(MajImport ip)
           
 MajImport[] getImports()
           
 MajMethod getMethod(java.lang.String mName)
           
 MajNameSpace getNameSpace()
           
 MajScope getParentScope()
           
 MajType getThisType()
           
 MajTypeEnv getTypeEnv()
           
 MajType getTypeType(MajIdentifier id)
           
 MajType getTypeType(java.lang.String id)
           
 MajVarEnv getVarEnv()
           
 MajVariable getVariable(MajIdentifier id)
           
 MajVariable getVariable(java.lang.String varName)
           
 void putMethod(java.lang.String mName, MajMethod m)
           
 void putType(java.lang.String tName, MajType type)
           
 void putVariable(java.lang.String vName, MajVariable var)
           
 void setNameSpace(MajNameSpace nameSpace)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MajCompoundStmtsScope

public MajCompoundStmtsScope(MajScope parentScope)
Method Detail

getTypeEnv

public MajTypeEnv getTypeEnv()
Specified by:
getTypeEnv in interface MajScope

getVarEnv

public MajVarEnv getVarEnv()
Specified by:
getVarEnv in interface MajScope

getParentScope

public MajScope getParentScope()
Specified by:
getParentScope in interface MajScope

getNameSpace

public MajNameSpace getNameSpace()
Specified by:
getNameSpace in interface MajScope

getTypeType

public MajType getTypeType(MajIdentifier id)
Specified by:
getTypeType in interface MajScope

getTypeType

public MajType getTypeType(java.lang.String id)
Specified by:
getTypeType in interface MajScope

getImports

public MajImport[] getImports()
Specified by:
getImports in interface MajScope

addImport

public void addImport(MajImport ip)
Specified by:
addImport in interface MajScope

putType

public void putType(java.lang.String tName,
                    MajType type)
Specified by:
putType in interface MajScope

getVariable

public MajVariable getVariable(java.lang.String varName)
Specified by:
getVariable in interface MajScope

getVariable

public MajVariable getVariable(MajIdentifier id)
Specified by:
getVariable in interface MajScope

putVariable

public void putVariable(java.lang.String vName,
                        MajVariable var)
Specified by:
putVariable in interface MajScope

getMethod

public MajMethod getMethod(java.lang.String mName)
Specified by:
getMethod in interface MajScope

putMethod

public void putMethod(java.lang.String mName,
                      MajMethod m)
Specified by:
putMethod in interface MajScope

getThisType

public MajType getThisType()
Specified by:
getThisType in interface MajScope

toString

public java.lang.String toString()
Specified by:
toString in interface MajScope

setNameSpace

public void setNameSpace(MajNameSpace nameSpace)
Specified by:
setNameSpace in interface MajScope