/** Skip a field or method */ void skipMember() { bp = bp + 6; char ac = nextChar(); for (int i = 0; i < ac; i++) { bp = bp + 2; int attrLen = nextInt(); bp = bp + attrLen; } }
/** Skip a field or method */ void skipMember() { bp = bp + 6; char ac = nextChar(); for (int i = 0; i < ac; i++) { bp = bp + 2; int attrLen = nextInt(); bp = bp + attrLen; } }
/** Skip a field or method */ void skipMember() { bp = bp + 6; char ac = nextChar(); for (int i = 0; i < ac; i++) { bp = bp + 2; int attrLen = nextInt(); bp = bp + attrLen; } }
CompoundAnnotationProxy readCompoundAnnotation() { Type t = readTypeOrClassSymbol(nextChar()); int numFields = nextChar(); ListBuffer<Pair<Name,Attribute>> pairs = new ListBuffer<Pair<Name,Attribute>>(); for (int i=0; i<numFields; i++) { Name name = readName(nextChar()); Attribute value = readAttributeValue(); pairs.append(new Pair<Name,Attribute>(name, value)); } return new CompoundAnnotationProxy(t, pairs.toList()); }
CompoundAnnotationProxy readCompoundAnnotation() { Type t = readTypeOrClassSymbol(nextChar()); int numFields = nextChar(); ListBuffer<Pair<Name,Attribute>> pairs = new ListBuffer<Pair<Name,Attribute>>(); for (int i=0; i<numFields; i++) { Name name = readName(nextChar()); Attribute value = readAttributeValue(); pairs.append(new Pair<Name,Attribute>(name, value)); } return new CompoundAnnotationProxy(t, pairs.toList()); }
CompoundAnnotationProxy readCompoundAnnotation() { Type t = readTypeOrClassSymbol(nextChar()); int numFields = nextChar(); ListBuffer<Pair<Name,Attribute>> pairs = new ListBuffer<Pair<Name,Attribute>>(); for (int i=0; i<numFields; i++) { Name name = readName(nextChar()); Attribute value = readAttributeValue(); pairs.append(new Pair<Name,Attribute>(name, value)); } return new CompoundAnnotationProxy(t, pairs.toList()); }
protected void read(Symbol sym, int attrLen) { Object v = readPool(nextChar()); // Ignore ConstantValue attribute if field not final. if ((sym.flags() & FINAL) != 0) ((VarSymbol) sym).setData(v); } },
protected void read(Symbol sym, int attrLen) { int nexceptions = nextChar(); List<Type> thrown = List.nil(); for (int j = 0; j < nexceptions; j++) thrown = thrown.prepend(readClassSymbol(nextChar()).type); if (sym.type.getThrownTypes().isEmpty()) sym.type.asMethodType().thrown = thrown.reverse(); } },
void attachTypeAnnotations(final Symbol sym) { int numAttributes = nextChar(); if (numAttributes != 0) { ListBuffer<TypeAnnotationProxy> proxies = new ListBuffer<>(); for (int i = 0; i < numAttributes; i++) proxies.append(readTypeAnnotation()); annotate.normal(new TypeAnnotationCompleter(sym, proxies.toList())); } }
void attachTypeAnnotations(final Symbol sym) { int numAttributes = nextChar(); if (numAttributes != 0) { ListBuffer<TypeAnnotationProxy> proxies = new ListBuffer<>(); for (int i = 0; i < numAttributes; i++) proxies.append(readTypeAnnotation()); annotate.normal(new TypeAnnotationCompleter(sym, proxies.toList())); } }