maj.semant
Interface MajScope
- All Known Implementing Classes:
- MajCompoundStmtsScope, MajCompoundType, MajOutermostScope
- public interface MajScope
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)