|
kiama 0.9.0 API
|
|
class
Environment(parent : Environment)
extends AnyRef| Value Summary | |
val
|
decls : scala.collection.mutable.HashMap[java.lang.String, EnvEntry] |
| Method Summary | |
def
|
addDeclsToEnv
(decls : scala.List[Declaration]) : Unit
Add declaration list to the environment
|
def
|
addToEnv
(nm : java.lang.String, dec : Declaration) : Unit
Add new entry to the environment. Note: if the entry already exists, it is
overwritten by the new entry, but with it' 'multiplyDefined' field set to true
|
def
|
findDecl
(nm : java.lang.String, searchAll : Boolean) : Declaration
Find a declaration in the environment. If a parent is specified, and 'searchAll'
is true, then also search parent environments
|
def
|
isMultiplyDefined
(nm : java.lang.String) : Boolean
Return whether the name is multiply defined in this scope
|
override def
|
toString
: java.lang.String
Returns a string representation of the object.
|
| Methods inherited from AnyRef | |
| getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Class Summary | |
case class
|
EnvEntry
(val dec : Declaration, val multiplyDefined : Boolean) extends scala.Product
|
| Value Details |
| Method Details |
def
addToEnv(nm : java.lang.String, dec : Declaration) : Unit
def
addDeclsToEnv(decls : scala.List[Declaration]) : Unit
def
findDecl(nm : java.lang.String, searchAll : Boolean) : Declaration
def
isMultiplyDefined(nm : java.lang.String) : Boolean
override
def
toString : java.lang.String
The default representation is platform dependent.
|
kiama 0.9.0 API
|
|