Class StmtList

  • All Implemented Interfaces:
    java.lang.Iterable<Stmt>, java.util.Comparator<Stmt>

    public class StmtList
    extends java.lang.Object
    implements java.lang.Iterable<Stmt>, java.util.Comparator<Stmt>
    Represent a list of statement.
    • Constructor Detail

      • StmtList

        public StmtList()
    • Method Detail

      • add

        public void add​(Stmt stmt)
      • addAll

        public void addAll​(java.util.Collection<Stmt> list)
      • compare

        public int compare​(Stmt o1,
                           Stmt o2)
        Specified by:
        compare in interface java.util.Comparator<Stmt>
      • contains

        public boolean contains​(Stmt stmt)
      • getFirst

        public Stmt getFirst()
      • getLast

        public Stmt getLast()
      • getSize

        public int getSize()
      • insertAfter

        public void insertAfter​(Stmt position,
                                Stmt stmt)
      • insertBefore

        public void insertBefore​(Stmt position,
                                 Stmt stmt)
      • insertFirst

        public void insertFirst​(Stmt stmt)
      • insertLast

        public void insertLast​(Stmt stmt)
      • iterator

        public java.util.Iterator<Stmt> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Stmt>
      • remove

        public void remove​(Stmt stmt)
      • replace

        public void replace​(Stmt stmt,
                            Stmt nas)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • move

        public void move​(Stmt start,
                         Stmt end,
                         Stmt dist)
      • clear

        public void clear()