public class Binding extends Element
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,Assignment> |
assignments
The set of Assignments in this Binding.
|
Constructor and Description |
---|
Binding()
Creates a default Binding.
|
Modifier and Type | Method and Description |
---|---|
Binding |
addAssignment(Assignment assignment)
Adds an Assignment to this Binding.
|
Binding |
execute()
Executes all of the Assignments associated with this Binding.
|
Assignment |
getAssignment(java.lang.String name)
Returns the Assignment to a named Parameter stored in this Binding.
|
java.util.Set<Assignment> |
getAssignments()
Returns all the Assignments associated with this Binding.
|
Binding |
resolve(Scope scope)
Causes this Binding to resolve its global/local Parameter references.
|
safeEquals, safeHashCode, semanticError
protected java.util.Map<java.lang.String,Assignment> assignments
public Binding addAssignment(Assignment assignment)
assignment
- the Assignment to add.public Assignment getAssignment(java.lang.String name)
name
- the name of the assigned Parameter.public java.util.Set<Assignment> getAssignments()
public Binding resolve(Scope scope)
scope
- a Scope declaring global/local Parameters.public Binding execute()