|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParserScope
An interface used by the expression parser for identifier lookup.
An object implementing this interface represents the set of identifiers that can be used in an expression being evaluated.
PtParser
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |