Module hw06

Class AAccumulator

java.lang.Object
provided.listFW.visitors.AAccumulator
All Implemented Interfaces:
IAccumulator
Direct Known Subclasses:
CopyAcc, LastNegAcc, ProdAcc, SumAcc

public abstract class AAccumulator extends Object implements IAccumulator
An IAccumulator that holds an Object as its internal value and who's string representation is the string representation of that value.
Author:
swong
  • Field Details

    • value

      protected Object value
      The stored value
  • Constructor Details

    • AAccumulator

      public AAccumulator(Object value)
      Constructor for the class
      Parameters:
      value - The initial (base case) value
  • Method Details