src/share/classes/com/sun/tools/javac/code/Symbol.java

changeset 308
03944ee4fac4
parent 155
4d2d8b6459e1
child 341
85fecace920b
equal deleted inserted replaced
307:ca063536e4a6 308:03944ee4fac4
98 98
99 /** The type of this symbol. 99 /** The type of this symbol.
100 */ 100 */
101 public Type type; 101 public Type type;
102 102
103 /** The type annotations targeted to a tree directly owned by this symbol
104 */
105 // type annotations are stored here for two purposes:
106 // - convenient location to store annotations for generation after erasure
107 // - a private interface for accessing type annotations parsed from
108 // classfiles
109 // the field is populated for the following declaration only
110 // class, field, variable and type parameters
111 //
112 public List<Attribute.TypeCompound> typeAnnotations;
113
103 /** The owner of this symbol. 114 /** The owner of this symbol.
104 */ 115 */
105 public Symbol owner; 116 public Symbol owner;
106 117
107 /** The completer of this symbol. 118 /** The completer of this symbol.
120 this.type = type; 131 this.type = type;
121 this.owner = owner; 132 this.owner = owner;
122 this.completer = null; 133 this.completer = null;
123 this.erasure_field = null; 134 this.erasure_field = null;
124 this.attributes_field = List.nil(); 135 this.attributes_field = List.nil();
136 this.typeAnnotations = List.nil();
125 this.name = name; 137 this.name = name;
126 } 138 }
127 139
128 /** Clone this symbol with new owner. 140 /** Clone this symbol with new owner.
129 * Legal only for fields and methods. 141 * Legal only for fields and methods.

mercurial