/** Attach annotations. */ void attachAnnotations(final Symbol sym) { int numAttributes = nextChar(); if (numAttributes != 0) { ListBuffer<CompoundAnnotationProxy> proxies = new ListBuffer<CompoundAnnotationProxy>(); for (int i = 0; i<numAttributes; i++) { CompoundAnnotationProxy proxy = readCompoundAnnotation(); if (proxy.type.tsym == syms.proprietaryType.tsym) { if (!sym.toString().startsWith("sun.reflect.annotation")) sym.flags_field |= PROPRIETARY; } else proxies.append(proxy); } annotate.later(new AnnotationCompleter(sym, proxies.toList())); } }
/** Attach annotations. */ void attachAnnotations(final Symbol sym) { int numAttributes = nextChar(); if (numAttributes != 0) { ListBuffer<CompoundAnnotationProxy> proxies = new ListBuffer<CompoundAnnotationProxy>(); for (int i = 0; i<numAttributes; i++) { CompoundAnnotationProxy proxy = readCompoundAnnotation(); if (proxy.type.tsym == syms.proprietaryType.tsym) sym.flags_field |= PROPRIETARY; else if (proxy.type.tsym == syms.profileType.tsym) { if (profile != Profile.DEFAULT) { for (Pair<Name,Attribute> v: proxy.values) { if (v.fst == names.value && v.snd instanceof Attribute.Constant) { Attribute.Constant c = (Attribute.Constant) v.snd; if (c.type == syms.intType && ((Integer) c.value) > profile.value) { sym.flags_field |= NOT_IN_PROFILE; } } } } } else proxies.append(proxy); } annotate.normal(new AnnotationCompleter(sym, proxies.toList())); } }
/** Attach annotations. */ void attachAnnotations(final Symbol sym) { int numAttributes = nextChar(); if (numAttributes != 0) { ListBuffer<CompoundAnnotationProxy> proxies = new ListBuffer<CompoundAnnotationProxy>(); for (int i = 0; i<numAttributes; i++) { CompoundAnnotationProxy proxy = readCompoundAnnotation(); if (proxy.type.tsym == syms.proprietaryType.tsym) sym.flags_field |= PROPRIETARY; else if (proxy.type.tsym == syms.profileType.tsym) { if (profile != Profile.DEFAULT) { for (Pair<Name,Attribute> v: proxy.values) { if (v.fst == names.value && v.snd instanceof Attribute.Constant) { Attribute.Constant c = (Attribute.Constant) v.snd; if (c.type == syms.intType && ((Integer) c.value) > profile.value) { sym.flags_field |= NOT_IN_PROFILE; } } } } } else proxies.append(proxy); } annotate.normal(new AnnotationCompleter(sym, proxies.toList())); } }
/** Attach annotations. */ void attachAnnotations(final Symbol sym) { int numAttributes = nextChar(); if (numAttributes != 0) { ListBuffer<CompoundAnnotationProxy> proxies = new ListBuffer<CompoundAnnotationProxy>(); for (int i = 0; i<numAttributes; i++) { CompoundAnnotationProxy proxy = readCompoundAnnotation(); if (proxy.type.tsym == syms.proprietaryType.tsym) sym.flags_field |= PROPRIETARY; else proxies.append(proxy); } annotate.later(new AnnotationCompleter(sym, proxies.toList())); } }
public void run() { JavaFileObject previousClassFile = currentClassFile; try { currentClassFile = classFile; List<Attribute.Compound> newList = deproxyCompoundList(l); if (sym.annotationsPendingCompletion()) { sym.setDeclarationAttributes(newList); } else { sym.appendAttributes(newList); } } finally { currentClassFile = previousClassFile; } } }
public void enterAnnotation() { JavaFileObject previousClassFile = currentClassFile; try { currentClassFile = classFile; List<Attribute.Compound> newList = deproxyCompoundList(l); sym.attributes_field = ((sym.attributes_field == null) ? newList : newList.prependList(sym.attributes_field)); } finally { currentClassFile = previousClassFile; } } }
public void run() { JavaFileObject previousClassFile = currentClassFile; try { currentClassFile = classFile; List<Attribute.Compound> newList = deproxyCompoundList(l); if (sym.annotationsPendingCompletion()) { sym.setDeclarationAttributes(newList); } else { sym.appendAttributes(newList); } } finally { currentClassFile = previousClassFile; } } }
public void enterAnnotation() { JavaFileObject previousClassFile = currentClassFile; try { currentClassFile = classFile; List<Attribute.Compound> newList = deproxyCompoundList(l); sym.attributes_field = ((sym.attributes_field == null) ? newList : newList.prependList(sym.attributes_field)); } finally { currentClassFile = previousClassFile; } } }