Class ValueOperatorPtg

Direct Known Subclasses:
AddPtg, ConcatPtg, DividePtg, EqualPtg, GreaterEqualPtg, GreaterThanPtg, LessEqualPtg, LessThanPtg, MultiplyPtg, NotEqualPtg, PercentPtg, PowerPtg, SubtractPtg, UnaryMinusPtg, UnaryPlusPtg

public abstract class ValueOperatorPtg extends OperationPtg
Common superclass of all value operators. Subclasses include all unary and binary operators except for the reference operators (IntersectionPtg, RangePtg, UnionPtg)
Author:
Josh Micich
  • Constructor Details

    • ValueOperatorPtg

      public ValueOperatorPtg()
  • Method Details

    • isBaseToken

      public final boolean isBaseToken()
      All Operator Ptgs are base tokens (i.e. are not RVA classified)
      Specified by:
      isBaseToken in class Ptg
      Returns:
      false if this token is classified as 'reference', 'value', or 'array'
    • getDefaultOperandClass

      public final byte getDefaultOperandClass()
      Overrides:
      getDefaultOperandClass in class OperationPtg
    • write

      public void write(LittleEndianOutput out)
      Specified by:
      write in class Ptg
    • getSid

      protected abstract byte getSid()
    • getSize

      public final int getSize()
      Specified by:
      getSize in class Ptg
      Returns:
      the encoded length of this Ptg, including the initial Ptg type identifier byte.
    • toFormulaString

      public final String toFormulaString()
      Description copied from class: Ptg
      return a string representation of this token alone
      Specified by:
      toFormulaString in class Ptg