Package com.ibm.wala.fixedpoint.impl
Class NullaryOperator<T extends IVariable<T>>
- java.lang.Object
-
- com.ibm.wala.fixpoint.AbstractOperator<T>
-
- com.ibm.wala.fixedpoint.impl.NullaryOperator<T>
-
- All Implemented Interfaces:
FixedPointConstants
public abstract class NullaryOperator<T extends IVariable<T>> extends AbstractOperator<T>
An operator of the form lhs = op
-
-
Field Summary
-
Fields inherited from interface com.ibm.wala.fixpoint.FixedPointConstants
CHANGED, CHANGED_AND_FIXED, CHANGED_MASK, FIXED_MASK, NOT_CHANGED, NOT_CHANGED_AND_FIXED, SIDE_EFFECT_MASK
-
-
Constructor Summary
Constructors Constructor Description NullaryOperator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract byte
evaluate(T lhs)
Evaluate this equation, setting a new value for the left-hand side.byte
evaluate(T lhs, T[] rhs)
Evaluate this equation, setting a new value for the left-hand side.-
Methods inherited from class com.ibm.wala.fixpoint.AbstractOperator
equals, hashCode, toString
-
-
-
-
Method Detail
-
evaluate
public byte evaluate(T lhs, T[] rhs) throws java.lang.UnsupportedOperationException
Description copied from class:AbstractOperator
Evaluate this equation, setting a new value for the left-hand side.- Specified by:
evaluate
in classAbstractOperator<T extends IVariable<T>>
- Returns:
- a code that indicates: 1) has the lhs value changed? 2) has this equation reached a fixed-point, in that we never have to evaluate the equation again, even if rhs operands change?
- Throws:
java.lang.UnsupportedOperationException
-
evaluate
public abstract byte evaluate(T lhs)
Evaluate this equation, setting a new value for the left-hand side.- Returns:
- true if the lhs value changes. false otherwise.
-
-