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    /* ---------------------------------------------------------------------- */
023    
024    /**
025     * Represents a Type syntactic unit. <p>
026     *
027     * WARNING: unlike other AST nodes, Type and it's subtypes may
028     * not have associated locations!  Locations exist only if syntax is
029     * true.
030     */
031    
032    public abstract class Type extends ASTNode
033    {
034        /**
035         * Does this AST Node have associated locations?  True if yes.
036         */
037        //@ ghost public boolean syntax;
038    
039        public TypeModifierPragmaVec tmodifiers;
040    
041    
042    
043    
044    // Generated boilerplate constructors:
045    
046        /**
047         * Construct a raw Type whose class invariant(s) have not
048         * yet been established.  It is the caller's job to
049         * initialize the returned node's fields so that any
050         * class invariants hold.
051         */
052        //@ requires I_will_establish_invariants_afterwards;
053        protected Type() {}    //@ nowarn Invariant,NonNullInit;
054    
055        public void check() {
056           super.check();
057           if (this.tmodifiers != null)
058              for(int i = 0; i < this.tmodifiers.size(); i++)
059                 this.tmodifiers.elementAt(i).check();
060        }
061    
062    }