001    /* Copyright 2000, 2001, Compaq Computer Corporation */
002    
003    /* IF THIS IS A JAVA FILE, DO NOT EDIT IT!  
004    
005       Most Java files in this directory which are part of the Javafe AST
006       are automatically generated using the astgen comment (see
007       ESCTools/Javafe/astgen) from the input file 'hierarchy.h'.  If you
008       wish to modify AST classes or introduce new ones, modify
009       'hierarchy.j.'
010     */
011    
012    package javafe.ast;
013    
014    import javafe.util.Assert;
015    import javafe.util.Location;
016    import javafe.util.ErrorSet;
017    
018    // Convention: unless otherwise noted, integer fields named "loc" refer
019    // to the location of the first character of the syntactic unit
020    
021    
022    public class SkipStmt extends Stmt
023    {
024      //@ invariant loc != javafe.util.Location.NULL;
025      public int loc;
026    
027      
028      public int getStartLoc() { return loc; }
029    
030    
031    // Generated boilerplate constructors:
032    
033      /**
034       * Construct a raw SkipStmt whose class invariant(s) have not
035       * yet been established.  It is the caller's job to
036       * initialize the returned node's fields so that any
037       * class invariants hold.
038       */
039      //@ requires I_will_establish_invariants_afterwards;
040      protected SkipStmt() {}    //@ nowarn Invariant,NonNullInit;
041    
042    
043    // Generated boilerplate methods:
044    
045      public final int childCount() {
046         return 0;
047      }
048    
049      public final Object childAt(int index) {
050              /*throws IndexOutOfBoundsException*/
051         if (index < 0)
052            throw new IndexOutOfBoundsException("AST child index " + index);
053         int indexPre = index;
054    
055         int sz;
056    
057         throw new IndexOutOfBoundsException("AST child index " + indexPre);
058      }   //@ nowarn Exception;
059    
060      public final String toString() {
061         return "[SkipStmt"
062            + " loc = " + this.loc
063            + "]";
064      }
065    
066      public final int getTag() {
067         return TagConstants.SKIPSTMT;
068      }
069    
070      public final void accept(Visitor v) { v.visitSkipStmt(this); }
071    
072      public final Object accept(VisitorArgResult v, Object o) {return v.visitSkipStmt(this, o); }
073    
074      public void check() {
075         super.check();
076      }
077    
078      //@ requires loc != javafe.util.Location.NULL;
079      //@ ensures \result != null;
080      public static SkipStmt make(int loc) {
081         //@ set I_will_establish_invariants_afterwards = true;
082         SkipStmt result = new SkipStmt();
083         result.loc = loc;
084         return result;
085      }
086    }