public interface ParserScope
An object implementing this interface represents the set of identifiers that can be used in an expression being evaluated.
PtParser
Modifier and Type | Method and Description |
---|---|
Token |
get(java.lang.String name)
Look up and return the value with the specified name in the
scope.
|
Type |
getType(java.lang.String name)
Look up and return the type of the value with the specified
name in the scope.
|
InequalityTerm |
getTypeTerm(java.lang.String name)
Look up and return the type term for the specified name
in the scope.
|
java.util.Set |
identifierSet()
Return a list of names corresponding to the identifiers
defined by this scope.
|
Token get(java.lang.String name) throws IllegalActionException
name
- The name of the variable to be looked up.IllegalActionException
- If a value in the scope
exists with the given name, but cannot be evaluated.Type getType(java.lang.String name) throws IllegalActionException
name
- The name of the variable to be looked up.IllegalActionException
- If a value in the scope
exists with the given name, but cannot be evaluated.InequalityTerm getTypeTerm(java.lang.String name) throws IllegalActionException
name
- The name of the variable to be looked up.IllegalActionException
- If a value in the scope
exists with the given name, but cannot be evaluated.java.util.Set identifierSet() throws IllegalActionException
IllegalActionException
- If constructing the list causes
it.