Class ParsedSubstance

java.lang.Object
org.kigalisim.lang.program.ParsedSubstance

public class ParsedSubstance extends Object
Record of a substance parsed from the source of a QubecTalk program.

Contains the operations defined for this substance.

  • Constructor Details

    • ParsedSubstance

      public ParsedSubstance(String name, List<Operation> operations)
      Create a new record of a substance.
      Parameters:
      name - The name of the substance parsed.
      operations - The operations defined for this substance.
  • Method Details

    • getName

      public String getName()
      Get the name of this substance.
      Returns:
      The name of this substance.
    • getOperations

      public List<Operation> getOperations()
      Get the operations defined for this substance.
      Returns:
      Iterable over the operations defined for this substance.