| java.lang.Object gnu.expr.Expression gnu.expr.ScopeExp
All known Subclasses: gnu.expr.LambdaExp, gnu.expr.CatchClause, gnu.expr.LetExp,
ScopeExp | abstract public class ScopeExp extends Expression (Code) | | Abstract class for expressions that add local variable bindings.
author: Per Bothner |
outer | public ScopeExp outer(Code) | | The statically enclosing binding contour.
|
ScopeExp | public ScopeExp()(Code) | | |
addDeclaration | final public Declaration addDeclaration(String name)(Code) | | Create a new declaration in the current Scope.
Parameters: name - name (interned) to give to the new Declaration. |
addDeclaration | final public Declaration addDeclaration(String name, Type type)(Code) | | Create a new declaration in the current Scope.
Parameters: name - name (interned) to give to the new Declaration. Parameters: type - type of the new Declaration. |
addDeclaration | final public void addDeclaration(Declaration decl)(Code) | | Add a Declaration to the current Scope.
|
countDecls | public int countDecls()(Code) | | |
getDefine | public Declaration getDefine(String name, char severity, Parser parser)(Code) | | Add a new Declaration, with a message if there is an existing one.
|
getNoDefine | public Declaration getNoDefine(String name)(Code) | | Lookup a declaration, create a non-defining declaration if needed.
|
lookup | public Declaration lookup(String sym)(Code) | | Find a Declaration by name.
Parameters: sym - the (interned) name of the Declaration sought the matching Declaration, if found; otherwise null |
|
|