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

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: SonarSource/sonar-java

public VariableDeclaratorListTreeImpl completeFieldDeclaration(TypeTree type, VariableDeclaratorListTreeImpl partial, InternalSyntaxToken semicolonToken) {
 for (VariableTreeImpl variable : partial) {
  variable.completeType(type);
 }
 // store the semicolon as endToken for the last variable
 partial.get(partial.size() - 1).setEndToken(semicolonToken);
 return partial;
}
origin: org.codehaus.sonar-plugins.java/java-squid

public VariableDeclaratorListTreeImpl completeFieldDeclaration(TypeTree type, VariableDeclaratorListTreeImpl partial, AstNode semicolonTokenAstNode) {
 partial.prependChildren((AstNode) type);
 for (VariableTreeImpl variable : partial) {
  variable.completeType(type);
 }
 partial.addChild(semicolonTokenAstNode);
 return partial;
}
origin: org.codehaus.sonar-plugins.java/java-squid

public VariableDeclaratorListTreeImpl newVariableDeclarators(VariableTreeImpl variable, Optional<List<Tuple<AstNode, VariableTreeImpl>>> rests) {
 ImmutableList.Builder<VariableTreeImpl> variables = ImmutableList.builder();
 variables.add(variable);
 List<AstNode> children = Lists.newArrayList();
 children.add(variable);
 if (rests.isPresent()) {
  for (Tuple<AstNode, VariableTreeImpl> rest : rests.get()) {
   variables.add(rest.second());
   children.add(rest.first());
   children.add(rest.second());
  }
 }
 return new VariableDeclaratorListTreeImpl(variables.build(), children);
}
origin: org.sonarsource.java/java-squid

public VariableDeclaratorListTreeImpl newVariableDeclarators(VariableTreeImpl variable, Optional<List<Tuple<InternalSyntaxToken, VariableTreeImpl>>> rests) {
 ImmutableList.Builder<VariableTreeImpl> variables = ImmutableList.builder();
 variables.add(variable);
 if (rests.isPresent()) {
  VariableTreeImpl previousVariable = variable;
  for (Tuple<InternalSyntaxToken, VariableTreeImpl> rest : rests.get()) {
   VariableTreeImpl newVariable = rest.second();
   InternalSyntaxToken separator = rest.first();
   variables.add(newVariable);
   // store the separator
   previousVariable.setEndToken(separator);
   previousVariable = newVariable;
  }
 }
 return new VariableDeclaratorListTreeImpl(variables.build());
}
origin: SonarSource/sonar-java

public VariableDeclaratorListTreeImpl completeLocalVariableDeclaration(
 ModifiersTreeImpl modifiers,
 TypeTree type,
 VariableDeclaratorListTreeImpl variables,
 InternalSyntaxToken semicolonSyntaxToken) {
 for (VariableTreeImpl variable : variables) {
  variable.completeModifiersAndType(modifiers, type);
 }
 // store the semicolon as endToken for the last variable
 variables.get(variables.size() - 1).setEndToken(semicolonSyntaxToken);
 return variables;
}
origin: SonarSource/sonar-java

public VariableDeclaratorListTreeImpl newVariableDeclarators(VariableTreeImpl variable, Optional<List<Tuple<InternalSyntaxToken, VariableTreeImpl>>> rests) {
 ImmutableList.Builder<VariableTreeImpl> variables = ImmutableList.builder();
 variables.add(variable);
 if (rests.isPresent()) {
  VariableTreeImpl previousVariable = variable;
  for (Tuple<InternalSyntaxToken, VariableTreeImpl> rest : rests.get()) {
   VariableTreeImpl newVariable = rest.second();
   InternalSyntaxToken separator = rest.first();
   variables.add(newVariable);
   // store the separator
   previousVariable.setEndToken(separator);
   previousVariable = newVariable;
  }
 }
 return new VariableDeclaratorListTreeImpl(variables.build());
}
origin: org.codehaus.sonar-plugins.java/java-squid

public VariableDeclaratorListTreeImpl completeLocalVariableDeclaration(
 ModifiersTreeImpl modifiers,
 TypeTree type,
 VariableDeclaratorListTreeImpl variables,
 AstNode semicolonTokenAstNode) {
 variables.prependChildren(modifiers, (AstNode) type);
 variables.addChild(semicolonTokenAstNode);
 for (VariableTreeImpl variable : variables) {
  variable.completeModifiersAndType(modifiers, type);
 }
 return variables;
}
origin: org.sonarsource.java/java-frontend

public VariableDeclaratorListTreeImpl completeLocalVariableDeclaration(
 ModifiersTreeImpl modifiers,
 TypeTree type,
 VariableDeclaratorListTreeImpl variables,
 InternalSyntaxToken semicolonSyntaxToken) {
 for (VariableTreeImpl variable : variables) {
  variable.completeModifiersAndType(modifiers, type);
 }
 // store the semicolon as endToken for the last variable
 variables.get(variables.size() - 1).setEndToken(semicolonSyntaxToken);
 return variables;
}
origin: org.sonarsource.java/java-frontend

public VariableDeclaratorListTreeImpl newVariableDeclarators(VariableTreeImpl variable, Optional<List<Tuple<InternalSyntaxToken, VariableTreeImpl>>> rests) {
 ImmutableList.Builder<VariableTreeImpl> variables = ImmutableList.builder();
 variables.add(variable);
 if (rests.isPresent()) {
  VariableTreeImpl previousVariable = variable;
  for (Tuple<InternalSyntaxToken, VariableTreeImpl> rest : rests.get()) {
   VariableTreeImpl newVariable = rest.second();
   InternalSyntaxToken separator = rest.first();
   variables.add(newVariable);
   // store the separator
   previousVariable.setEndToken(separator);
   previousVariable = newVariable;
  }
 }
 return new VariableDeclaratorListTreeImpl(variables.build());
}
origin: org.sonarsource.java/java-frontend

public VariableDeclaratorListTreeImpl completeFieldDeclaration(TypeTree type, VariableDeclaratorListTreeImpl partial, InternalSyntaxToken semicolonToken) {
 for (VariableTreeImpl variable : partial) {
  variable.completeType(type);
 }
 // store the semicolon as endToken for the last variable
 partial.get(partial.size() - 1).setEndToken(semicolonToken);
 return partial;
}
origin: org.sonarsource.java/java-squid

public VariableDeclaratorListTreeImpl completeFieldDeclaration(TypeTree type, VariableDeclaratorListTreeImpl partial, InternalSyntaxToken semicolonToken) {
 for (VariableTreeImpl variable : partial) {
  variable.completeType(type);
 }
 // store the semicolon as endToken for the last variable
 partial.get(partial.size() - 1).setEndToken(semicolonToken);
 return partial;
}
origin: org.sonarsource.java/java-squid

public VariableDeclaratorListTreeImpl completeLocalVariableDeclaration(
 ModifiersTreeImpl modifiers,
 TypeTree type,
 VariableDeclaratorListTreeImpl variables,
 InternalSyntaxToken semicolonSyntaxToken) {
 for (VariableTreeImpl variable : variables) {
  variable.completeModifiersAndType(modifiers, type);
 }
 // store the semicolon as endToken for the last variable
 variables.get(variables.size() - 1).setEndToken(semicolonSyntaxToken);
 return variables;
}
org.sonar.java.ast.parserVariableDeclaratorListTreeImpl

Most used methods

  • <init>
  • get
  • size
  • addChild
  • prependChildren

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JList (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