Class OperationFragment

java.lang.Object
org.kigalisim.lang.fragment.Fragment
org.kigalisim.lang.fragment.OperationFragment

public class OperationFragment extends Fragment
A fragment containing only a calculation.
  • Constructor Details

    • OperationFragment

      public OperationFragment(Operation operation)
      Create a new fragment containing an operation.
      Parameters:
      operation - The calculation parsed from the source of this fragment.
  • Method Details

    • getOperation

      public Operation getOperation()
      Get the operation parsed from the source of this fragment.
      Overrides:
      getOperation in class Fragment
      Returns:
      Operation which can be resolved to an EngineNumber at runtime.