Interface ItreeElem

All Known Subinterfaces:
Itree, ItreeWithRhs
All Known Implementing Classes:
ArgsPassingItree, ArgVecItree, AssignmentItree, BiArithmeticItree, BindingItree, BranchItree, BranchWithElseItree, DerefItree, FastFunItree, IfItree, ItreeElem.Spread, LderefItree, LetRecItree, LstoreItree, McallItree, NadaItree, NestedArgsPassingItree, NestedVecAssignmentItree, NoTraitNewValItree, NumItree, OptRestVecAssignmentItree, OptVecAssignmentItree, RecvItree, RestVecAssignmentItree, SeqItree, SlowFunItree, StoreItree, StrItree, SymcallItree, TraitNewValItree, VarrefItree, VarrefVecAssignmentItree, VecItree

public sealed interface ItreeElem permits ItreeElem.Spread, Itree
An elem of vec bodies or actual args.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    ItreeElem of SPREAD type.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the expression in the elem.
    boolean
    Returns whether the type is SINGLE.
    default boolean
    Returns whether the type is SPREAD.
    int
    pos()
    Returns the pos of the elem on the program text.
  • Method Details

    • isSingle

      boolean isSingle()
      Returns whether the type is SINGLE.
      Returns:
      whether the type is SINGLE.
    • isSpread

      default boolean isSpread()
      Returns whether the type is SPREAD.
      Returns:
      whether the type is SPREAD.
    • expr

      Itree expr()
      Returns the expression in the elem.
      Returns:
      the expression in the elem.
    • pos

      int pos()
      Returns the pos of the elem on the program text.
      Returns:
      the pos of the elem on the program text.