public static BoundListTreeImpl emptyList() { return new BoundListTreeImpl(Lists.<TypeTree>newArrayList(), Lists.<SyntaxToken>newArrayList()); } }
public static BoundListTreeImpl emptyList() { return new BoundListTreeImpl(Lists.<TypeTree>newArrayList(), Lists.<SyntaxToken>newArrayList()); } }
public static BoundListTreeImpl emptyList() { return new BoundListTreeImpl(Lists.<TypeTree>newArrayList(), Lists.<SyntaxToken>newArrayList()); } }
public BoundListTreeImpl newBounds(TypeTree classType, Optional<List<Tuple<InternalSyntaxToken, Tree>>> rests) { ImmutableList.Builder<Tree> classTypes = ImmutableList.builder(); ImmutableList.Builder<SyntaxToken> separators = ImmutableList.builder(); classTypes.add(classType); if (rests.isPresent()) { for (Tuple<InternalSyntaxToken, Tree> rest : rests.get()) { separators.add(rest.first()); classTypes.add(rest.second()); } } return new BoundListTreeImpl(classTypes.build(), separators.build()); }
public BoundListTreeImpl newBounds(TypeTree classType, Optional<List<Tuple<InternalSyntaxToken, Tree>>> rests) { ImmutableList.Builder<Tree> classTypes = ImmutableList.builder(); ImmutableList.Builder<SyntaxToken> separators = ImmutableList.builder(); classTypes.add(classType); if (rests.isPresent()) { for (Tuple<InternalSyntaxToken, Tree> rest : rests.get()) { separators.add(rest.first()); classTypes.add(rest.second()); } } return new BoundListTreeImpl(classTypes.build(), separators.build()); }
public BoundListTreeImpl newBounds(TypeTree classType, Optional<List<Tuple<InternalSyntaxToken, Tree>>> rests) { ImmutableList.Builder<Tree> classTypes = ImmutableList.builder(); ImmutableList.Builder<SyntaxToken> separators = ImmutableList.builder(); classTypes.add(classType); if (rests.isPresent()) { for (Tuple<InternalSyntaxToken, Tree> rest : rests.get()) { separators.add(rest.first()); classTypes.add(rest.second()); } } return new BoundListTreeImpl(classTypes.build(), separators.build()); }
public BoundListTreeImpl newBounds(TypeTree classType, Optional<List<AstNode>> rests) { ImmutableList.Builder<Tree> classTypes = ImmutableList.builder(); List<AstNode> children = Lists.newArrayList(); classTypes.add(classType); children.add((AstNode) classType); if (rests.isPresent()) { for (AstNode rest : rests.get()) { for (AstNode child : rest.getChildren()) { if (!child.is(JavaPunctuator.AND)) { classTypes.add((Tree) child); } children.add(child); } } } return new BoundListTreeImpl(classTypes.build(), children); }