001    /* This file was generated with JastAdd2 (http://jastadd.org) version R20130213 */
002    package AST;
003    
004    import java.util.HashSet;
005    import java.io.File;
006    import java.util.*;
007    import beaver.*;
008    import java.util.ArrayList;
009    import java.util.zip.*;
010    import java.io.*;
011    import java.io.FileNotFoundException;
012    import java.util.Collection;
013    
014    /**
015     * @production MemberTypeDecl : {@link MemberDecl};
016     * @ast node
017     * @declaredat /home/jesper/svn/JastAddJ/Java1.4Frontend/java.ast:98
018     */
019    public abstract class MemberTypeDecl extends MemberDecl implements Cloneable {
020      /**
021       * @apilevel low-level
022       */
023      public void flushCache() {
024      }
025      /**
026       * @apilevel internal
027       */
028      public void flushCollectionCache() {
029      }
030      /**
031       * @apilevel internal
032       */
033      @SuppressWarnings({"unchecked", "cast"})
034      public MemberTypeDecl clone() throws CloneNotSupportedException {
035        MemberTypeDecl node = (MemberTypeDecl)super.clone();
036        node.in$Circle(false);
037        node.is$Final(false);
038        return node;
039      }
040      /**
041       * @ast method 
042       * 
043       */
044      public MemberTypeDecl() {
045        super();
046    
047    
048      }
049      /**
050       * Initializes the child array to the correct size.
051       * Initializes List and Opt nta children.
052       * @apilevel internal
053       * @ast method
054       * @ast method 
055       * 
056       */
057      public void init$Children() {
058      }
059      /**
060       * @apilevel low-level
061       * @ast method 
062       * 
063       */
064      protected int numChildren() {
065        return 0;
066      }
067      /**
068       * @apilevel internal
069       * @ast method 
070       * 
071       */
072      public boolean mayHaveRewrite() {
073        return false;
074      }
075      /**
076       * @attribute syn
077       * @aspect TypeScopePropagation
078       * @declaredat /home/jesper/svn/JastAddJ/Java1.4Frontend/LookupType.jrag:484
079       */
080      @SuppressWarnings({"unchecked", "cast"})
081      public abstract TypeDecl typeDecl();
082      /**
083       * @attribute syn
084       * @aspect TypeScopePropagation
085       * @declaredat /home/jesper/svn/JastAddJ/Java1.4Frontend/LookupType.jrag:479
086       */
087      public boolean declaresType(String name) {
088        ASTNode$State state = state();
089        try {  return typeDecl().name().equals(name);  }
090        finally {
091        }
092      }
093      /**
094       * @attribute syn
095       * @aspect TypeScopePropagation
096       * @declaredat /home/jesper/svn/JastAddJ/Java1.4Frontend/LookupType.jrag:481
097       */
098      public TypeDecl type(String name) {
099        ASTNode$State state = state();
100        try {  return declaresType(name) ? typeDecl() : null;  }
101        finally {
102        }
103      }
104      /**
105       * @attribute syn
106       * @aspect Modifiers
107       * @declaredat /home/jesper/svn/JastAddJ/Java1.4Frontend/Modifiers.jrag:222
108       */
109      public boolean isStatic() {
110        ASTNode$State state = state();
111        try {  return typeDecl().isStatic();  }
112        finally {
113        }
114      }
115      /**
116       * @attribute syn
117       * @aspect PrettyPrint
118       * @declaredat /home/jesper/svn/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:758
119       */
120      public boolean addsIndentationLevel() {
121        ASTNode$State state = state();
122        try {  return false;  }
123        finally {
124        }
125      }
126      /**
127       * @attribute syn
128       * @aspect Annotations
129       * @declaredat /home/jesper/svn/JastAddJ/Java1.5Frontend/Annotations.jrag:283
130       */
131      public boolean hasAnnotationSuppressWarnings(String s) {
132        ASTNode$State state = state();
133        try {  return typeDecl().hasAnnotationSuppressWarnings(s);  }
134        finally {
135        }
136      }
137      /**
138       * @attribute syn
139       * @aspect Annotations
140       * @declaredat /home/jesper/svn/JastAddJ/Java1.5Frontend/Annotations.jrag:322
141       */
142      public boolean isDeprecated() {
143        ASTNode$State state = state();
144        try {  return typeDecl().isDeprecated();  }
145        finally {
146        }
147      }
148      /**
149       * @attribute syn
150       * @aspect GenericsParTypeDecl
151       * @declaredat /home/jesper/svn/JastAddJ/Java1.5Frontend/GenericsParTypeDecl.jrag:67
152       */
153      public boolean visibleTypeParameters() {
154        ASTNode$State state = state();
155        try {  return !isStatic();  }
156        finally {
157        }
158      }
159      /**
160        * @return true if the modifier list includes the SafeVarargs annotation
161        * @attribute syn
162       * @aspect SafeVarargs
163       * @declaredat /home/jesper/svn/JastAddJ/Java7Frontend/SafeVarargs.jrag:20
164       */
165      public boolean hasAnnotationSafeVarargs() {
166        ASTNode$State state = state();
167        try {  return typeDecl().hasAnnotationSafeVarargs();  }
168        finally {
169        }
170      }
171      /**
172       * @apilevel internal
173       */
174      public ASTNode rewriteTo() {
175        return super.rewriteTo();
176      }
177    }