public TypeParameterTreeImpl newTypeParameter(InternalSyntaxToken extendsToken, BoundListTreeImpl bounds) { return new TypeParameterTreeImpl(extendsToken, bounds); }
@Override public Iterator<Tree> childrenIterator() { return Iterators.concat( Iterators.singletonIterator(identifier()), bounds().iterator()); }
public TypeParameterTreeImpl completeTypeParameter(Optional<List<AnnotationTreeImpl>> annotations, InternalSyntaxToken identifierToken, Optional<TypeParameterTreeImpl> partial) { IdentifierTreeImpl identifier = new IdentifierTreeImpl(identifierToken); completeTypeTreeWithAnnotations(identifier, annotations); return partial.isPresent() ? partial.get().complete(identifier) : new TypeParameterTreeImpl(identifier); }
public TypeParameterTreeImpl complete(IdentifierTreeImpl identifier) { Preconditions.checkState(this.identifier == null); this.identifier = identifier; prependChildren(identifier); return this; }
public TypeParameterTreeImpl completeTypeParameter(Optional<List<AnnotationTreeImpl>> annotations, InternalSyntaxToken identifierToken, Optional<TypeParameterTreeImpl> partial) { IdentifierTreeImpl identifier = new IdentifierTreeImpl(identifierToken); completeTypeTreeWithAnnotations(identifier, annotations); return partial.isPresent() ? partial.get().complete(identifier) : new TypeParameterTreeImpl(identifier); }
public TypeParameterTreeImpl completeTypeParameter(Optional<List<AnnotationTreeImpl>> annotations, InternalSyntaxToken identifierToken, Optional<TypeParameterTreeImpl> partial) { IdentifierTreeImpl identifier = new IdentifierTreeImpl(identifierToken); completeTypeTreeWithAnnotations(identifier, annotations); return partial.isPresent() ? partial.get().complete(identifier) : new TypeParameterTreeImpl(identifier); }
public TypeParameterTreeImpl newTypeParameter(InternalSyntaxToken extendsToken, BoundListTreeImpl bounds) { return new TypeParameterTreeImpl(extendsToken, bounds); }
public TypeParameterTreeImpl(IdentifierTreeImpl identifier) { super(Kind.TYPE_PARAMETER); this.identifier = identifier; this.bounds = Collections.emptyList(); addChild(identifier); }
public TypeParameterTreeImpl completeTypeParameter(Optional<List<AnnotationTreeImpl>> annotations, AstNode identifierAstNode, Optional<TypeParameterTreeImpl> partial) { IdentifierTreeImpl identifier = new IdentifierTreeImpl(InternalSyntaxToken.create(identifierAstNode)); if (annotations.isPresent()) { identifier.prependChildren(annotations.get()); } return partial.isPresent() ? partial.get().complete(identifier) : new TypeParameterTreeImpl(identifier); }
public TypeParameterTreeImpl newTypeParameter(InternalSyntaxToken extendsToken, BoundListTreeImpl bounds) { return new TypeParameterTreeImpl(extendsToken, bounds); }
public TypeParameterTreeImpl newTypeParameter(AstNode extendsTokenAstNode, BoundListTreeImpl bounds) { return new TypeParameterTreeImpl(InternalSyntaxToken.create(extendsTokenAstNode), bounds); }