langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/code/SymbolMetadata.java
equal
deleted
inserted
replaced
70 |
70 |
71 /* |
71 /* |
72 * Type attributes for this symbol. |
72 * Type attributes for this symbol. |
73 * This field should never be null. |
73 * This field should never be null. |
74 */ |
74 */ |
75 private List<Attribute.TypeCompound> type_attributes = List.<Attribute.TypeCompound>nil(); |
75 private List<Attribute.TypeCompound> type_attributes = List.nil(); |
76 |
76 |
77 /* |
77 /* |
78 * Type attributes of initializers in this class. |
78 * Type attributes of initializers in this class. |
79 * Unused if the current symbol is not a ClassSymbol. |
79 * Unused if the current symbol is not a ClassSymbol. |
80 */ |
80 */ |
81 private List<Attribute.TypeCompound> init_type_attributes = List.<Attribute.TypeCompound>nil(); |
81 private List<Attribute.TypeCompound> init_type_attributes = List.nil(); |
82 |
82 |
83 /* |
83 /* |
84 * Type attributes of class initializers in this class. |
84 * Type attributes of class initializers in this class. |
85 * Unused if the current symbol is not a ClassSymbol. |
85 * Unused if the current symbol is not a ClassSymbol. |
86 */ |
86 */ |
87 private List<Attribute.TypeCompound> clinit_type_attributes = List.<Attribute.TypeCompound>nil(); |
87 private List<Attribute.TypeCompound> clinit_type_attributes = List.nil(); |
88 |
88 |
89 /* |
89 /* |
90 * The Symbol this SymbolMetadata instance belongs to |
90 * The Symbol this SymbolMetadata instance belongs to |
91 */ |
91 */ |
92 private final Symbol sym; |
92 private final Symbol sym; |
246 return this; |
246 return this; |
247 } |
247 } |
248 |
248 |
249 private List<Attribute.Compound> filterDeclSentinels(List<Attribute.Compound> a) { |
249 private List<Attribute.Compound> filterDeclSentinels(List<Attribute.Compound> a) { |
250 return (a == DECL_IN_PROGRESS || a == DECL_NOT_STARTED) |
250 return (a == DECL_IN_PROGRESS || a == DECL_NOT_STARTED) |
251 ? List.<Attribute.Compound>nil() |
251 ? List.nil() |
252 : a; |
252 : a; |
253 } |
253 } |
254 |
254 |
255 private boolean isStarted() { |
255 private boolean isStarted() { |
256 return attributes != DECL_NOT_STARTED; |
256 return attributes != DECL_NOT_STARTED; |