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 * @production ElementValue : {@link ASTNode}; 015 * @ast node 016 * @declaredat /home/jesper/svn/JastAddJ/Java1.5Frontend/Annotations.ast:10 017 */ 018 public abstract class ElementValue extends ASTNode<ASTNode> implements Cloneable { 019 /** 020 * @apilevel low-level 021 */ 022 public void flushCache() { 023 } 024 /** 025 * @apilevel internal 026 */ 027 public void flushCollectionCache() { 028 } 029 /** 030 * @apilevel internal 031 */ 032 @SuppressWarnings({"unchecked", "cast"}) 033 public ElementValue clone() throws CloneNotSupportedException { 034 ElementValue node = (ElementValue)super.clone(); 035 node.in$Circle(false); 036 node.is$Final(false); 037 return node; 038 } 039 /** 040 * @ast method 041 * @aspect AnnotationsCodegen 042 * @declaredat /home/jesper/svn/JastAddJ/Java1.5Backend/AnnotationsCodegen.jrag:194 043 */ 044 public void appendAsAttributeTo(Attribute buf) { 045 throw new Error(getClass().getName() + " does not support appendAsAttributeTo(Attribute buf)"); 046 } 047 /** 048 * @ast method 049 * 050 */ 051 public ElementValue() { 052 super(); 053 054 055 } 056 /** 057 * Initializes the child array to the correct size. 058 * Initializes List and Opt nta children. 059 * @apilevel internal 060 * @ast method 061 * @ast method 062 * 063 */ 064 public void init$Children() { 065 } 066 /** 067 * @apilevel low-level 068 * @ast method 069 * 070 */ 071 protected int numChildren() { 072 return 0; 073 } 074 /** 075 * @apilevel internal 076 * @ast method 077 * 078 */ 079 public boolean mayHaveRewrite() { 080 return false; 081 } 082 /** 083 * @attribute syn 084 * @aspect Annotations 085 * @declaredat /home/jesper/svn/JastAddJ/Java1.5Frontend/Annotations.jrag:57 086 */ 087 public boolean validTarget(Annotation a) { 088 ASTNode$State state = state(); 089 try { return false; } 090 finally { 091 } 092 } 093 /** 094 * @attribute syn 095 * @aspect Annotations 096 * @declaredat /home/jesper/svn/JastAddJ/Java1.5Frontend/Annotations.jrag:181 097 */ 098 public ElementValue definesElementTypeValue(String name) { 099 ASTNode$State state = state(); 100 try { return null; } 101 finally { 102 } 103 } 104 /** 105 * @attribute syn 106 * @aspect Annotations 107 * @declaredat /home/jesper/svn/JastAddJ/Java1.5Frontend/Annotations.jrag:295 108 */ 109 public boolean hasValue(String s) { 110 ASTNode$State state = state(); 111 try { return false; } 112 finally { 113 } 114 } 115 /** 116 * @attribute syn 117 * @aspect Annotations 118 * @declaredat /home/jesper/svn/JastAddJ/Java1.5Frontend/Annotations.jrag:475 119 */ 120 public boolean commensurateWithTypeDecl(TypeDecl type) { 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:495 130 */ 131 public boolean commensurateWithArrayDecl(ArrayDecl type) { 132 ASTNode$State state = state(); 133 try { return type.componentType().commensurateWith(this); } 134 finally { 135 } 136 } 137 /** 138 * @attribute syn 139 * @aspect Annotations 140 * @declaredat /home/jesper/svn/JastAddJ/Java1.5Frontend/Annotations.jrag:510 141 */ 142 public TypeDecl type() { 143 ASTNode$State state = state(); 144 try { return unknownType(); } 145 finally { 146 } 147 } 148 /** 149 * @attribute inh 150 * @aspect Annotations 151 * @declaredat /home/jesper/svn/JastAddJ/Java1.5Frontend/Annotations.jrag:461 152 */ 153 @SuppressWarnings({"unchecked", "cast"}) 154 public TypeDecl enclosingAnnotationDecl() { 155 ASTNode$State state = state(); 156 TypeDecl enclosingAnnotationDecl_value = getParent().Define_TypeDecl_enclosingAnnotationDecl(this, null); 157 return enclosingAnnotationDecl_value; 158 } 159 /** 160 * @attribute inh 161 * @aspect Annotations 162 * @declaredat /home/jesper/svn/JastAddJ/Java1.5Frontend/Annotations.jrag:515 163 */ 164 @SuppressWarnings({"unchecked", "cast"}) 165 public TypeDecl unknownType() { 166 ASTNode$State state = state(); 167 TypeDecl unknownType_value = getParent().Define_TypeDecl_unknownType(this, null); 168 return unknownType_value; 169 } 170 /** 171 * @attribute inh 172 * @aspect AnnotationsCodegen 173 * @declaredat /home/jesper/svn/JastAddJ/Java1.5Backend/AnnotationsCodegen.jrag:231 174 */ 175 @SuppressWarnings({"unchecked", "cast"}) 176 public TypeDecl hostType() { 177 ASTNode$State state = state(); 178 TypeDecl hostType_value = getParent().Define_TypeDecl_hostType(this, null); 179 return hostType_value; 180 } 181 /** 182 * @apilevel internal 183 */ 184 public ASTNode rewriteTo() { 185 return super.rewriteTo(); 186 } 187 }