    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 abstract class StmtPragma extends Stmt
    023    {
    024      /* denotes that a pragma is redundant (e.g. "assume_redundantly") */
    025      public boolean redundant;
    026
    027
    028      public boolean isRedundant() { return redundant; }
    029      public void setRedundant(boolean v) { redundant = v; }
    030      // when there are various synonomus tag names, tag and getTag() will be
    031      // a canonical value; originalTag will be the specific value.  Thus tag
    032      // can be used in switch statements and originalTag for printing.
    033      private int originalTag;
    034      public StmtPragma setOriginalTag(int t) { originalTag = t; return this; }
    035      public int originalTag() {
    036        return (originalTag == 0) ? getTag() : originalTag;
    037      }
    038
    039
    040    // Generated boilerplate constructors:
    041
    042      /**
    043       * Construct a raw StmtPragma whose class invariant(s) have not
    044       * yet been established.  It is the caller's job to
    045       * initialize the returned node's fields so that any
    046       * class invariants hold.
    047       */
    048      //@ requires I_will_establish_invariants_afterwards;
    049      protected StmtPragma() {}    //@ nowarn Invariant,NonNullInit;
    050
    051      public void check() {
    052         super.check();
    053      }
    054
    055    }