maj.semant
Interface MajScope

All Known Implementing Classes:
MajCompoundStmtsScope, MajCompoundType, MajOutermostScope

public interface MajScope


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 typeName, MajType type)
           
 void putVariable(java.lang.String varName, MajVariable var)
           
 void setNameSpace(MajNameSpace nameSpace)
           
 java.lang.String toString()
           
 

Method Detail

getTypeEnv

public MajTypeEnv getTypeEnv()

getVarEnv

public MajVarEnv getVarEnv()

getParentScope

public MajScope getParentScope()

getNameSpace

public MajNameSpace getNameSpace()

getTypeType

public MajType getTypeType(java.lang.String id)

getTypeType

public MajType getTypeType(MajIdentifier id)

getVariable

public MajVariable getVariable(java.lang.String varName)

getVariable

public MajVariable getVariable(MajIdentifier id)

putType

public void putType(java.lang.String typeName,
                    MajType type)

putVariable

public void putVariable(java.lang.String varName,
                        MajVariable var)

getMethod

public MajMethod getMethod(java.lang.String mName)

putMethod

public void putMethod(java.lang.String mName,
                      MajMethod m)

toString

public java.lang.String toString()

setNameSpace

public void setNameSpace(MajNameSpace nameSpace)

getThisType

public MajType getThisType()

getImports

public MajImport[] getImports()

addImport

public void addImport(MajImport ip)