Class DividePtg

All Implemented Interfaces:
org.apache.poi.common.Duplicatable, GenericRecord

public final class DividePtg extends ValueOperatorPtg
This PTG implements the standard binomial divide "/"
  • Field Details

  • Method Details

    • getSid

      public byte getSid()
      Specified by:
      getSid in class Ptg
      Returns:
      structure id of the parsed thing, or -1 if the record has no sid
    • getNumberOfOperands

      public int getNumberOfOperands()
      Description copied from class: OperationPtg
      The number of operands expected by the operations
      Specified by:
      getNumberOfOperands in class OperationPtg
    • toFormulaString

      public String toFormulaString(String[] operands)
      Description copied from class: OperationPtg
      returns a string representation of the operations the length of the input array should equal the number returned by
      Specified by:
      toFormulaString in class OperationPtg
      See Also:
    • copy

      public DividePtg copy()
      Specified by:
      copy in interface org.apache.poi.common.Duplicatable
      Specified by:
      copy in class Ptg