Package org.sonar.javascript.se.points
Class BinaryProgramPoint
- java.lang.Object
-
- org.sonar.javascript.se.points.BinaryProgramPoint
-
- All Implemented Interfaces:
ProgramPoint
- Direct Known Subclasses:
BitwiseBinaryProgramPoint,PlusProgramPoint,StrictlyArithmeticBinaryProgramPoint
public abstract class BinaryProgramPoint extends Object implements ProgramPoint
-
-
Constructor Summary
Constructors Constructor Description BinaryProgramPoint()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Optional<ProgramState>execute(ProgramState state)ConstraintfirstOperandConstraint()NOTE This method should be called only afterresultingConstraint(ProgramState)orexecute(ProgramState)protected abstract SymbolicValueresolveValue(Constraint firstOperandConstraint, Constraint secondOperandConstraint, SymbolicValue firstOperandValue, SymbolicValue secondOperandValue)ConstraintresultingConstraint(ProgramState currentState)ConstraintsecondOperandConstraint()NOTE This method should be called only afterresultingConstraint(ProgramState)orexecute(ProgramState)
-
-
-
Method Detail
-
execute
public final Optional<ProgramState> execute(ProgramState state)
- Specified by:
executein interfaceProgramPoint
-
resultingConstraint
public Constraint resultingConstraint(ProgramState currentState)
-
resolveValue
protected abstract SymbolicValue resolveValue(Constraint firstOperandConstraint, Constraint secondOperandConstraint, @Deprecated SymbolicValue firstOperandValue, @Deprecated SymbolicValue secondOperandValue)
-
firstOperandConstraint
public Constraint firstOperandConstraint()
NOTE This method should be called only afterresultingConstraint(ProgramState)orexecute(ProgramState)
-
secondOperandConstraint
public Constraint secondOperandConstraint()
NOTE This method should be called only afterresultingConstraint(ProgramState)orexecute(ProgramState)
-
-