| Constructor and Description |
|---|
ZBinding()
Creates an empty binding.
|
ZBinding(net.sourceforge.czt.z.ast.BindExpr expr)
Create a binding from a expr
|
ZBinding(Map<String,ZValue> binding)
Creates a binding from a
Map from identifiers
(String) to values (ZValue). |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Test if this binding is equal to a given object.
|
ZValue |
get(String location)
Given an identifier, gets a value from the binding.
|
net.sourceforge.czt.z.ast.BindExpr |
getExpr()
Get the expr type representing the zvalue
|
int |
hashCode() |
Set<String> |
keySet()
Equivalent to
Map.keySet(). |
protected net.sourceforge.czt.z.ast.DeclList |
mapToDeclList(Map<String,ZValue> binding)
Transfer a map to a DeclList
|
String |
toString()
Convert this binding to a string.
|
public ZBinding()
public ZBinding(Map<String,ZValue> binding)
Map from identifiers
(String) to values (ZValue).binding - The map to copy into the new binding.public ZBinding(net.sourceforge.czt.z.ast.BindExpr expr)
expr_ - the BindExpr used to created the binding.public Set<String> keySet()
Map.keySet().public ZValue get(String location)
location - The name of the value to get from the binding.public boolean equals(Object obj)
public int hashCode()
public String toString()
public net.sourceforge.czt.z.ast.BindExpr getExpr()
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.