maj.semant
Class MajOutermostScope
java.lang.Object
maj.semant.MajOutermostScope
- All Implemented Interfaces:
- MajScope
- public class MajOutermostScope
- extends java.lang.Object
- implements MajScope
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MajOutermostScope
public MajOutermostScope(MajTypeEnv typeEnv,
MajVarEnv varEnv,
java.util.Vector vImports)
setNameSpace
public void setNameSpace(MajNameSpace nameSpace)
- Specified by:
setNameSpace in interface MajScope
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
addImport
public void addImport(MajImport ip)
- Specified by:
addImport 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
putType
public void putType(java.lang.String typeName,
MajType type)
- Specified by:
putType in interface MajScope
getVariable
public MajVariable getVariable(java.lang.String name)
- 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 name)
- Specified by:
getMethod in interface MajScope
putMethod
public void putMethod(java.lang.String mName,
MajMethod m)
- Specified by:
putMethod in interface MajScope
toString
public java.lang.String toString()
- Specified by:
toString in interface MajScope
getThisType
public MajType getThisType()
- Specified by:
getThisType in interface MajScope
getImports
public MajImport[] getImports()
- Specified by:
getImports in interface MajScope