Codota Logo
TypeParameterTreeImpl
Code IndexAdd Codota to your IDE (free)

How to use
TypeParameterTreeImpl
in
org.sonar.java.model

Best Java code snippets using org.sonar.java.model.TypeParameterTreeImpl (Showing top 12 results out of 315)

  • Common ways to obtain TypeParameterTreeImpl
private void myMethod () {
TypeParameterTreeImpl t =
  • Codota IconIdentifierTreeImpl identifier;new TypeParameterTreeImpl(identifier)
  • Smart code suggestions by Codota
}
origin: SonarSource/sonar-java

public TypeParameterTreeImpl newTypeParameter(InternalSyntaxToken extendsToken, BoundListTreeImpl bounds) {
 return new TypeParameterTreeImpl(extendsToken, bounds);
}
origin: org.codehaus.sonar-plugins.java/java-squid

public TypeParameterTreeImpl(InternalSyntaxToken extendsToken, BoundListTreeImpl bounds) {
 super(Kind.TYPE_PARAMETER);
 this.bounds = bounds;
 addChild(extendsToken);
 addChild(bounds);
}
origin: org.codehaus.sonar-plugins.java/java-squid

@Override
public Iterator<Tree> childrenIterator() {
 return Iterators.concat(
  Iterators.singletonIterator(identifier()),
  bounds().iterator());
}
origin: SonarSource/sonar-java

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);
}
origin: org.codehaus.sonar-plugins.java/java-squid

public TypeParameterTreeImpl complete(IdentifierTreeImpl identifier) {
 Preconditions.checkState(this.identifier == null);
 this.identifier = identifier;
 prependChildren(identifier);
 return this;
}
origin: org.sonarsource.java/java-squid

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);
}
origin: org.sonarsource.java/java-frontend

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);
}
origin: org.sonarsource.java/java-squid

public TypeParameterTreeImpl newTypeParameter(InternalSyntaxToken extendsToken, BoundListTreeImpl bounds) {
 return new TypeParameterTreeImpl(extendsToken, bounds);
}
origin: org.codehaus.sonar-plugins.java/java-squid

public TypeParameterTreeImpl(IdentifierTreeImpl identifier) {
 super(Kind.TYPE_PARAMETER);
 this.identifier = identifier;
 this.bounds = Collections.emptyList();
 addChild(identifier);
}
origin: org.codehaus.sonar-plugins.java/java-squid

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);
}
origin: org.sonarsource.java/java-frontend

public TypeParameterTreeImpl newTypeParameter(InternalSyntaxToken extendsToken, BoundListTreeImpl bounds) {
 return new TypeParameterTreeImpl(extendsToken, bounds);
}
origin: org.codehaus.sonar-plugins.java/java-squid

public TypeParameterTreeImpl newTypeParameter(AstNode extendsTokenAstNode, BoundListTreeImpl bounds) {
 return new TypeParameterTreeImpl(InternalSyntaxToken.create(extendsTokenAstNode), bounds);
}
org.sonar.java.modelTypeParameterTreeImpl

Most used methods

  • <init>
  • complete
  • addChild
  • bounds
  • identifier
  • prependChildren

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • orElseThrow (Optional)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ImageIO (javax.imageio)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now