Class LogOrAntiLogToAnyBase

java.lang.Object
parser.Operator
parser.LogOrAntiLogToAnyBase
All Implemented Interfaces:
Validatable
Direct Known Subclasses:
AntiLogToAnyBase, LogToAnyBase

public class LogOrAntiLogToAnyBase extends Operator implements Validatable
  • Field Details

    • index

      private int index
      The index of objects of this class in the scanned Function object in which they exist.
  • Constructor Details

    • LogOrAntiLogToAnyBase

      public LogOrAntiLogToAnyBase(String name, int index, ArrayList<String> scan)
      Parameters:
      name - The name of this Operator with which it is represented in a math function.
      index - the location of this Operator object in its parent Function object's scanned ArrayList object.
      scan - The scanned output
  • Method Details

    • setIndex

      public void setIndex(int index)
      Parameters:
      index - sets the index
    • getIndex

      public int getIndex()
    • validate

      public boolean validate(ArrayList<String> scan)
      Specified by:
      validate in interface Validatable
      Parameters:
      scan - The scanner output
      Returns:
      true if valid