Codota Logo
TypeParameterListTreeImpl.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.sonar.java.ast.parser.TypeParameterListTreeImpl
constructor

Best Java code snippets using org.sonar.java.ast.parser.TypeParameterListTreeImpl.<init> (Showing top 20 results out of 315)

  • Common ways to obtain TypeParameterListTreeImpl
private void myMethod () {
TypeParameterListTreeImpl t =
  • Codota Iconnew TypeParameterListTreeImpl()
  • Smart code suggestions by Codota
}
origin: SonarSource/sonar-java

public ClassTreeImpl(ModifiersTree modifiers, SyntaxToken openBraceToken, List<Tree> members, SyntaxToken closeBraceToken) {
 super(Kind.ANNOTATION_TYPE);
 this.kind = Preconditions.checkNotNull(Kind.ANNOTATION_TYPE);
 this.modifiers = modifiers;
 this.typeParameters = new TypeParameterListTreeImpl();
 this.superClass = null;
 this.superInterfaces = QualifiedIdentifierListTreeImpl.emptyList();
 this.openBraceToken = openBraceToken;
 this.members = Preconditions.checkNotNull(members);
 this.closeBraceToken = closeBraceToken;
}
origin: org.codehaus.sonar-plugins.java/java-squid

public ClassTreeImpl(ModifiersTree modifiers, List<Tree> members, List<AstNode> children) {
 super(Kind.ANNOTATION_TYPE);
 this.kind = Preconditions.checkNotNull(Kind.ANNOTATION_TYPE);
 this.modifiers = modifiers;
 this.typeParameters = new TypeParameterListTreeImpl();
 this.superClass = null;
 this.superInterfaces = ImmutableList.of();
 this.members = Preconditions.checkNotNull(members);
 for (AstNode child : children) {
  addChild(child);
 }
}
origin: org.sonarsource.java/java-squid

public ClassTreeImpl(ModifiersTree modifiers, SyntaxToken openBraceToken, List<Tree> members, SyntaxToken closeBraceToken) {
 super(Kind.ANNOTATION_TYPE);
 this.kind = Preconditions.checkNotNull(Kind.ANNOTATION_TYPE);
 this.modifiers = modifiers;
 this.typeParameters = new TypeParameterListTreeImpl();
 this.superClass = null;
 this.superInterfaces = QualifiedIdentifierListTreeImpl.emptyList();
 this.openBraceToken = openBraceToken;
 this.members = Preconditions.checkNotNull(members);
 this.closeBraceToken = closeBraceToken;
}
origin: org.codehaus.sonar-plugins.java/java-squid

public MethodTreeImpl(
  @Nullable TypeTree returnType,
  IdentifierTree simpleName,
  FormalParametersListTreeImpl parameters,
  List<TypeTree> throwsClauses,
  @Nullable BlockTree block) {
 super(returnType == null ? Kind.CONSTRUCTOR : Kind.METHOD);
 this.typeParameters = new TypeParameterListTreeImpl();
 this.modifiers = null;
 this.returnType = returnType;
 this.simpleName = Preconditions.checkNotNull(simpleName);
 this.parameters = Preconditions.checkNotNull(parameters);
 this.block = block;
 this.throwsClauses = Preconditions.checkNotNull(throwsClauses);
 this.defaultToken = null;
 this.defaultValue = null;
}
origin: org.sonarsource.java/java-frontend

public ClassTreeImpl(ModifiersTree modifiers, SyntaxToken openBraceToken, List<Tree> members, SyntaxToken closeBraceToken) {
 super(Kind.ANNOTATION_TYPE);
 this.kind = Preconditions.checkNotNull(Kind.ANNOTATION_TYPE);
 this.modifiers = modifiers;
 this.typeParameters = new TypeParameterListTreeImpl();
 this.superClass = null;
 this.superInterfaces = QualifiedIdentifierListTreeImpl.emptyList();
 this.openBraceToken = openBraceToken;
 this.members = Preconditions.checkNotNull(members);
 this.closeBraceToken = closeBraceToken;
}
origin: org.codehaus.sonar-plugins.java/java-squid

public ClassTreeImpl(Kind kind, List<Tree> members, List<AstNode> children) {
 super(kind);
 this.kind = kind;
 this.members = members;
 this.modifiers = ModifiersTreeImpl.EMPTY;
 this.typeParameters = new TypeParameterListTreeImpl();
 this.superInterfaces = ImmutableList.of();
 for (AstNode child : children) {
  addChild(child);
 }
}
origin: org.sonarsource.java/java-squid

public TypeParameterListTreeImpl newTypeParameterList(InternalSyntaxToken openBracketToken, TypeParameterTreeImpl typeParameter, Optional<List<Tuple<InternalSyntaxToken,
 TypeParameterTreeImpl>>> rests, InternalSyntaxToken closeBracketToken) {
 ImmutableList.Builder<TypeParameterTree> typeParameters = ImmutableList.builder();
 typeParameters.add(typeParameter);
 ImmutableList.Builder<SyntaxToken> separators = ImmutableList.builder();
 if (rests.isPresent()) {
  for (Tuple<InternalSyntaxToken, TypeParameterTreeImpl> rest : rests.get()) {
   separators.add(rest.first());
   typeParameters.add(rest.second());
  }
 }
 return new TypeParameterListTreeImpl(openBracketToken, typeParameters.build(), separators.build(), closeBracketToken);
}
origin: SonarSource/sonar-java

public TypeParameterListTreeImpl newTypeParameterList(InternalSyntaxToken openBracketToken, TypeParameterTreeImpl typeParameter, Optional<List<Tuple<InternalSyntaxToken,
 TypeParameterTreeImpl>>> rests, InternalSyntaxToken closeBracketToken) {
 ImmutableList.Builder<TypeParameterTree> typeParameters = ImmutableList.builder();
 typeParameters.add(typeParameter);
 ImmutableList.Builder<SyntaxToken> separators = ImmutableList.builder();
 if (rests.isPresent()) {
  for (Tuple<InternalSyntaxToken, TypeParameterTreeImpl> rest : rests.get()) {
   separators.add(rest.first());
   typeParameters.add(rest.second());
  }
 }
 return new TypeParameterListTreeImpl(openBracketToken, typeParameters.build(), separators.build(), closeBracketToken);
}
origin: SonarSource/sonar-java

public ClassTreeImpl(Kind kind, SyntaxToken openBraceToken, List<Tree> members, SyntaxToken closeBraceToken) {
 super(kind);
 this.kind = kind;
 this.openBraceToken = openBraceToken;
 this.members = members;
 this.closeBraceToken = closeBraceToken;
 this.modifiers = ModifiersTreeImpl.emptyModifiers();
 this.typeParameters = new TypeParameterListTreeImpl();
 this.superInterfaces = QualifiedIdentifierListTreeImpl.emptyList();
}
origin: SonarSource/sonar-java

public MethodTreeImpl(FormalParametersListTreeImpl parameters, @Nullable SyntaxToken defaultToken, @Nullable ExpressionTree defaultValue) {
 super(Kind.METHOD);
 this.typeParameters = new TypeParameterListTreeImpl();
 this.parameters = parameters;
 this.openParenToken = parameters.openParenToken();
 this.closeParenToken = parameters.closeParenToken();
 this.block = null;
 this.throwsToken = null;
 this.throwsClauses = QualifiedIdentifierListTreeImpl.emptyList();
 this.defaultToken = defaultToken;
 this.defaultValue = defaultValue;
}
origin: org.sonarsource.java/java-frontend

public TypeParameterListTreeImpl newTypeParameterList(InternalSyntaxToken openBracketToken, TypeParameterTreeImpl typeParameter, Optional<List<Tuple<InternalSyntaxToken,
 TypeParameterTreeImpl>>> rests, InternalSyntaxToken closeBracketToken) {
 ImmutableList.Builder<TypeParameterTree> typeParameters = ImmutableList.builder();
 typeParameters.add(typeParameter);
 ImmutableList.Builder<SyntaxToken> separators = ImmutableList.builder();
 if (rests.isPresent()) {
  for (Tuple<InternalSyntaxToken, TypeParameterTreeImpl> rest : rests.get()) {
   separators.add(rest.first());
   typeParameters.add(rest.second());
  }
 }
 return new TypeParameterListTreeImpl(openBracketToken, typeParameters.build(), separators.build(), closeBracketToken);
}
origin: org.sonarsource.java/java-frontend

public MethodTreeImpl(FormalParametersListTreeImpl parameters, @Nullable SyntaxToken defaultToken, @Nullable ExpressionTree defaultValue) {
 super(Kind.METHOD);
 this.typeParameters = new TypeParameterListTreeImpl();
 this.parameters = parameters;
 this.openParenToken = parameters.openParenToken();
 this.closeParenToken = parameters.closeParenToken();
 this.block = null;
 this.throwsToken = null;
 this.throwsClauses = QualifiedIdentifierListTreeImpl.emptyList();
 this.defaultToken = defaultToken;
 this.defaultValue = defaultValue;
}
origin: org.sonarsource.java/java-squid

public ClassTreeImpl(Kind kind, SyntaxToken openBraceToken, List<Tree> members, SyntaxToken closeBraceToken) {
 super(kind);
 this.kind = kind;
 this.openBraceToken = openBraceToken;
 this.members = members;
 this.closeBraceToken = closeBraceToken;
 this.modifiers = ModifiersTreeImpl.emptyModifiers();
 this.typeParameters = new TypeParameterListTreeImpl();
 this.superInterfaces = QualifiedIdentifierListTreeImpl.emptyList();
}
origin: org.sonarsource.java/java-squid

public MethodTreeImpl(FormalParametersListTreeImpl parameters, @Nullable SyntaxToken defaultToken, @Nullable ExpressionTree defaultValue) {
 super(Kind.METHOD);
 this.typeParameters = new TypeParameterListTreeImpl();
 this.parameters = parameters;
 this.openParenToken = parameters.openParenToken();
 this.closeParenToken = parameters.closeParenToken();
 this.block = null;
 this.throwsToken = null;
 this.throwsClauses = QualifiedIdentifierListTreeImpl.emptyList();
 this.defaultToken = defaultToken;
 this.defaultValue = defaultValue;
}
origin: org.sonarsource.java/java-frontend

public ClassTreeImpl(Kind kind, SyntaxToken openBraceToken, List<Tree> members, SyntaxToken closeBraceToken) {
 super(kind);
 this.kind = kind;
 this.openBraceToken = openBraceToken;
 this.members = members;
 this.closeBraceToken = closeBraceToken;
 this.modifiers = ModifiersTreeImpl.emptyModifiers();
 this.typeParameters = new TypeParameterListTreeImpl();
 this.superInterfaces = QualifiedIdentifierListTreeImpl.emptyList();
}
origin: org.codehaus.sonar-plugins.java/java-squid

public MethodTreeImpl(FormalParametersListTreeImpl parameters, @Nullable SyntaxToken defaultToken, @Nullable ExpressionTree defaultValue) {
 super(Kind.METHOD);
 this.typeParameters = new TypeParameterListTreeImpl();
 this.parameters = parameters;
 this.block = null;
 this.throwsClauses = ImmutableList.of();
 this.defaultToken = defaultToken;
 this.defaultValue = defaultValue;
 addChild(parameters);
 if (defaultToken != null) {
  addChild((AstNode) defaultToken);
 }
 if (defaultValue != null) {
  addChild((AstNode) defaultValue);
 }
}
origin: org.codehaus.sonar-plugins.java/java-squid

public TypeParameterListTreeImpl newTypeParameterList(AstNode openBracketTokenAstNode, TypeParameterTreeImpl typeParameter, Optional<List<AstNode>> rests,
 AstNode closeBracketTokenAstNode) {
 InternalSyntaxToken openBracketToken = InternalSyntaxToken.create(openBracketTokenAstNode);
 InternalSyntaxToken closeBracketToken = InternalSyntaxToken.create(closeBracketTokenAstNode);
 ImmutableList.Builder<TypeParameterTree> typeParameters = ImmutableList.builder();
 List<AstNode> children = Lists.newArrayList();
 typeParameters.add(typeParameter);
 children.add(typeParameter);
 if (rests.isPresent()) {
  for (AstNode rest : rests.get()) {
   for (AstNode child : rest.getChildren()) {
    if (!child.is(JavaPunctuator.COMMA)) {
     typeParameters.add((TypeParameterTreeImpl) child);
    }
    children.add(child);
   }
  }
 }
 return new TypeParameterListTreeImpl(openBracketToken, typeParameters.build(), children, closeBracketToken);
}
origin: org.sonarsource.java/java-squid

this.typeParameters = new TypeParameterListTreeImpl();
this.modifiers = null;
this.returnType = returnType;
origin: SonarSource/sonar-java

this.typeParameters = new TypeParameterListTreeImpl();
this.modifiers = null;
this.returnType = returnType;
origin: org.sonarsource.java/java-frontend

this.typeParameters = new TypeParameterListTreeImpl();
this.modifiers = null;
this.returnType = returnType;
org.sonar.java.ast.parserTypeParameterListTreeImpl<init>

Popular methods of TypeParameterListTreeImpl

  • addChild
  • openBracketToken

Popular in Java

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • JTextField (javax.swing)
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