|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectforge.solve.Binding
public final class Binding
Binds variables to constants.
Constructor Summary | |
---|---|
Binding(ForgeBounds bounds)
Constructs an empty binding. |
Method Summary | |
---|---|
java.util.Set<ForgeExpression.Modifiable> |
bound()
Returns an unmodifiable view of the set of bound modifiables. |
ForgeBounds |
bounds()
Returns the bounds to which this binding belongs. |
Binding |
copy()
Constructs a copy of the specified binding. |
ForgeConstant |
getValue(ForgeExpression.Modifiable mod)
Returns the constant to which the given modifiable is bound. |
ForgeProgram |
program()
Returns the program to which this element belongs. |
void |
putValue(ForgeExpression.Modifiable mod,
ForgeConstant value)
Maps the given modifiable to the given constant. |
java.lang.String |
toString()
|
Binding |
unmodifiableView()
Returns an unmodifiable view of this binding. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Binding(ForgeBounds bounds)
Method Detail |
---|
public Binding copy()
public Binding unmodifiableView()
public ForgeProgram program()
ProgramElement
program
in interface ProgramElement
public ForgeBounds bounds()
public java.util.Set<ForgeExpression.Modifiable> bound()
public ForgeConstant getValue(ForgeExpression.Modifiable mod)
public void putValue(ForgeExpression.Modifiable mod, ForgeConstant value)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |