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

How to use
TypeUnionListTreeImpl
in
org.sonar.java.ast.parser

Best Java code snippets using org.sonar.java.ast.parser.TypeUnionListTreeImpl (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: SonarSource/sonar-java

public TypeTree newCatchType(TypeTree qualifiedIdentifier, Optional<List<Tuple<InternalSyntaxToken, TypeTree>>> rests) {
 if (!rests.isPresent()) {
  return qualifiedIdentifier;
 }
 ImmutableList.Builder<TypeTree> types = ImmutableList.builder();
 types.add(qualifiedIdentifier);
 ImmutableList.Builder<SyntaxToken> separators = ImmutableList.builder();
 for (Tuple<InternalSyntaxToken, TypeTree> rest : rests.get()) {
  separators.add(rest.first());
  types.add(rest.second());
 }
 return new UnionTypeTreeImpl(new TypeUnionListTreeImpl(types.build(), separators.build()));
}
origin: org.sonarsource.java/java-squid

public TypeTree newCatchType(TypeTree qualifiedIdentifier, Optional<List<Tuple<InternalSyntaxToken, TypeTree>>> rests) {
 if (!rests.isPresent()) {
  return qualifiedIdentifier;
 }
 ImmutableList.Builder<TypeTree> types = ImmutableList.builder();
 types.add(qualifiedIdentifier);
 ImmutableList.Builder<SyntaxToken> separators = ImmutableList.builder();
 for (Tuple<InternalSyntaxToken, TypeTree> rest : rests.get()) {
  separators.add(rest.first());
  types.add(rest.second());
 }
 return new UnionTypeTreeImpl(new TypeUnionListTreeImpl(types.build(), separators.build()));
}
origin: org.sonarsource.java/java-frontend

public TypeTree newCatchType(TypeTree qualifiedIdentifier, Optional<List<Tuple<InternalSyntaxToken, TypeTree>>> rests) {
 if (!rests.isPresent()) {
  return qualifiedIdentifier;
 }
 ImmutableList.Builder<TypeTree> types = ImmutableList.builder();
 types.add(qualifiedIdentifier);
 ImmutableList.Builder<SyntaxToken> separators = ImmutableList.builder();
 for (Tuple<InternalSyntaxToken, TypeTree> rest : rests.get()) {
  separators.add(rest.first());
  types.add(rest.second());
 }
 return new UnionTypeTreeImpl(new TypeUnionListTreeImpl(types.build(), separators.build()));
}
origin: org.codehaus.sonar-plugins.java/java-squid

public TypeTree newCatchType(TypeTree qualifiedIdentifier, Optional<List<AstNode>> rests) {
 if (!rests.isPresent()) {
  return qualifiedIdentifier;
 }
 List<AstNode> children = Lists.newArrayList();
 ImmutableList.Builder<TypeTree> types = ImmutableList.builder();
 children.add((AstNode) qualifiedIdentifier);
 types.add(qualifiedIdentifier);
 for (AstNode rest : rests.get()) {
  children.add(rest.getFirstChild());
  TypeTree qualifiedIdentifier2 = (TypeTree) rest.getLastChild();
  types.add(qualifiedIdentifier2);
  children.add((AstNode) qualifiedIdentifier2);
 }
 return new UnionTypeTreeImpl(new TypeUnionListTreeImpl(types.build(), children));
}
org.sonar.java.ast.parserTypeUnionListTreeImpl

Most used methods

  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
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