private static <T> List<T> join(List<T> list1, List<T> list2) { return list1.appendList(list2); }
/** * Append given list buffer at length, forming and returning a new * list. */ public List<A> appendList(ListBuffer<A> x) { return appendList(x.toList()); }
/** * Append given list buffer at length, forming and returning a new * list. */ public List<A> appendList(ListBuffer<A> x) { return appendList(x.toList()); }
/** * Append given list buffer at length, forming and returning a new * list. */ public List<A> appendList(ListBuffer<A> x) { return appendList(x.toList()); }
/** * Append given list buffer at length, forming and returning a new * list. */ public List<A> appendList(ListBuffer<A> x) { return appendList(x.toList()); }
@Override public boolean visitEnumTypeBody(EnumTypeBody node) { List<JCTree> constants = toList(JCTree.class, node.astConstants()); List<JCTree> members = toList(JCTree.class, node.astMembers()); set(List.<JCTree>nil().appendList(constants).appendList(members)); return true; }
@Override public boolean visitEnumTypeBody(EnumTypeBody node) { List<JCTree> constants = toList(JCTree.class, node.astConstants()); List<JCTree> members = toList(JCTree.class, node.astMembers()); set(List.<JCTree>nil().appendList(constants).appendList(members)); return true; }
@Override public boolean visitEnumTypeBody(EnumTypeBody node) { List<JCTree> constants = toList(JCTree.class, node.astConstants()); List<JCTree> members = toList(JCTree.class, node.astMembers()); set(List.<JCTree>nil().appendList(constants).appendList(members)); return true; }
public SymbolMetadata appendInitTypeAttributes(List<Attribute.TypeCompound> l) { if (l.isEmpty()) { ; // no-op } else if (init_type_attributes.isEmpty()) { init_type_attributes = l; } else { init_type_attributes = init_type_attributes.appendList(l); } return this; }
public SymbolMetadata appendClassInitTypeAttributes(List<Attribute.TypeCompound> l) { if (l.isEmpty()) { ; // no-op } else if (clinit_type_attributes.isEmpty()) { clinit_type_attributes = l; } else { clinit_type_attributes = clinit_type_attributes.appendList(l); } return this; }
AmbiguityError(Symbol sym1, Symbol sym2) { super(AMBIGUOUS, "ambiguity error"); ambiguousSyms = flatten(sym2).appendList(flatten(sym1)); }
public SymbolMetadata appendInitTypeAttributes(List<Attribute.TypeCompound> l) { if (l.isEmpty()) { ; // no-op } else if (init_type_attributes.isEmpty()) { init_type_attributes = l; } else { init_type_attributes = init_type_attributes.appendList(l); } return this; }
public SymbolMetadata appendClassInitTypeAttributes(List<Attribute.TypeCompound> l) { if (l.isEmpty()) { ; // no-op } else if (clinit_type_attributes.isEmpty()) { clinit_type_attributes = l; } else { clinit_type_attributes = clinit_type_attributes.appendList(l); } return this; }
public SymbolMetadata append(List<Attribute.Compound> l) { attributes = filterDeclSentinels(attributes); if (l.isEmpty()) { ; // no-op } else if (attributes.isEmpty()) { attributes = l; } else { attributes = attributes.appendList(l); } return this; }
public SymbolMetadata append(List<Attribute.Compound> l) { attributes = filterDeclSentinels(attributes); if (l.isEmpty()) { ; // no-op } else if (attributes.isEmpty()) { attributes = l; } else { attributes = attributes.appendList(l); } return this; }
public boolean accepts(UndetVar uv) { return uv.getBounds(InferenceBound.UPPER) .diff(uv.getDeclaredBounds()) .appendList(uv.getBounds(InferenceBound.EQ, InferenceBound.LOWER)).nonEmpty(); } });
private <T extends JCTree> List<T> toList(Class<T> type, Node node) { if (node == null) return List.nil(); JcTreeBuilder builder = create(); node.accept(builder.visitor); @SuppressWarnings("unchecked") List<T> all = (List<T>)builder.getAll(); return List.<T>nil().appendList(all); }
private <T extends JCTree> List<T> toList(Class<T> type, Node node) { if (node == null) return List.nil(); JcTreeBuilder builder = create(); node.accept(builder.visitor); @SuppressWarnings("unchecked") List<T> all = (List<T>)builder.getAll(); return List.<T>nil().appendList(all); }
private <T extends JCTree> List<T> toList(Class<T> type, Node node) { if (node == null) return List.nil(); JcTreeBuilder builder = create(); node.accept(builder.visitor); @SuppressWarnings("unchecked") List<T> all = (List<T>)builder.getAll(); return List.<T>nil().appendList(all); }
public boolean accepts(UndetVar uv) { return uv.getBounds(InferenceBound.UPPER) .diff(uv.getDeclaredBounds()) .appendList(uv.getBounds(InferenceBound.EQ, InferenceBound.LOWER)).nonEmpty(); } });