public static BoundListTreeImpl emptyList() { return new BoundListTreeImpl(Lists.<TypeTree>newArrayList(), Lists.<SyntaxToken>newArrayList()); } }
public TypeParameterTreeImpl(IdentifierTreeImpl identifier) { super(Kind.TYPE_PARAMETER); this.identifier = identifier; this.extendsToken = null; this.bounds = BoundListTreeImpl.emptyList(); }
public static BoundListTreeImpl emptyList() { return new BoundListTreeImpl(Lists.<TypeTree>newArrayList(), Lists.<SyntaxToken>newArrayList()); } }
public TypeParameterTreeImpl(IdentifierTreeImpl identifier) { super(Kind.TYPE_PARAMETER); this.identifier = identifier; this.extendsToken = null; this.bounds = BoundListTreeImpl.emptyList(); }
public static BoundListTreeImpl emptyList() { return new BoundListTreeImpl(Lists.<TypeTree>newArrayList(), Lists.<SyntaxToken>newArrayList()); } }
public TypeParameterTreeImpl(IdentifierTreeImpl identifier) { super(Kind.TYPE_PARAMETER); this.identifier = identifier; this.extendsToken = null; this.bounds = BoundListTreeImpl.emptyList(); }
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 TypeCastExpressionTreeImpl(TypeTree type, InternalSyntaxToken closeParenToken, ExpressionTree expression) { super(Kind.TYPE_CAST); this.type = Preconditions.checkNotNull(type); this.bounds = BoundListTreeImpl.emptyList(); this.closeParenToken = closeParenToken; this.expression = Preconditions.checkNotNull(expression); andToken = null; }
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 TypeCastExpressionTreeImpl(TypeTree type, InternalSyntaxToken closeParenToken, ExpressionTree expression) { super(Kind.TYPE_CAST); this.type = Preconditions.checkNotNull(type); this.bounds = BoundListTreeImpl.emptyList(); this.closeParenToken = closeParenToken; this.expression = Preconditions.checkNotNull(expression); andToken = null; }
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 TypeCastExpressionTreeImpl(TypeTree type, InternalSyntaxToken closeParenToken, ExpressionTree expression) { super(Kind.TYPE_CAST); this.type = Preconditions.checkNotNull(type); this.bounds = BoundListTreeImpl.emptyList(); this.closeParenToken = closeParenToken; this.expression = Preconditions.checkNotNull(expression); andToken = null; }
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); }
public TypeCastExpressionTreeImpl newClassCastExpression(TypeTree type, Optional<Tuple<InternalSyntaxToken, BoundListTreeImpl>> classTypes, InternalSyntaxToken closeParenToken, ExpressionTree expression) { BoundListTreeImpl bounds = BoundListTreeImpl.emptyList(); InternalSyntaxToken andToken = null; if (classTypes.isPresent()) { andToken = classTypes.get().first(); bounds = classTypes.get().second(); } return new TypeCastExpressionTreeImpl(type, andToken, bounds, closeParenToken, expression); }
public TypeCastExpressionTreeImpl newClassCastExpression(TypeTree type, Optional<Tuple<InternalSyntaxToken, BoundListTreeImpl>> classTypes, InternalSyntaxToken closeParenToken, ExpressionTree expression) { BoundListTreeImpl bounds = BoundListTreeImpl.emptyList(); InternalSyntaxToken andToken = null; if (classTypes.isPresent()) { andToken = classTypes.get().first(); bounds = classTypes.get().second(); } return new TypeCastExpressionTreeImpl(type, andToken, bounds, closeParenToken, expression); }
public TypeCastExpressionTreeImpl newClassCastExpression(TypeTree type, Optional<Tuple<InternalSyntaxToken, BoundListTreeImpl>> classTypes, InternalSyntaxToken closeParenToken, ExpressionTree expression) { BoundListTreeImpl bounds = BoundListTreeImpl.emptyList(); InternalSyntaxToken andToken = null; if (classTypes.isPresent()) { andToken = classTypes.get().first(); bounds = classTypes.get().second(); } return new TypeCastExpressionTreeImpl(type, andToken, bounds, closeParenToken, expression); }