Search in sources :

Example 11 with VariableTreeImpl

use of org.sonar.java.model.declaration.VariableTreeImpl in project sonar-java by SonarSource.

the class TreeFactory method completeTypeFormalParameters.

public FormalParametersListTreeImpl completeTypeFormalParameters(ModifiersTreeImpl modifiers, TypeTree type, FormalParametersListTreeImpl partial) {
    VariableTreeImpl variable = partial.get(0);
    variable.completeModifiersAndType(modifiers, type);
    return partial;
}
Also used : VariableTreeImpl(org.sonar.java.model.declaration.VariableTreeImpl)

Aggregations

VariableTreeImpl (org.sonar.java.model.declaration.VariableTreeImpl)11 ImmutableList (com.google.common.collect.ImmutableList)4 ClassTreeImpl (org.sonar.java.model.declaration.ClassTreeImpl)3 Test (org.junit.Test)2 InternalSyntaxToken (org.sonar.java.model.InternalSyntaxToken)2 ArrayTypeTreeImpl (org.sonar.java.model.JavaTree.ArrayTypeTreeImpl)2 IdentifierTreeImpl (org.sonar.java.model.expression.IdentifierTreeImpl)2 AnnotationInstance (org.sonar.plugins.java.api.semantic.SymbolMetadata.AnnotationInstance)2 CompilationUnitTree (org.sonar.plugins.java.api.tree.CompilationUnitTree)2 ExpressionTree (org.sonar.plugins.java.api.tree.ExpressionTree)2 TypeTree (org.sonar.plugins.java.api.tree.TypeTree)2 VariableTree (org.sonar.plugins.java.api.tree.VariableTree)2 Optional (com.sonar.sslr.api.typed.Optional)1 JavaTree (org.sonar.java.model.JavaTree)1 MethodTreeImpl (org.sonar.java.model.declaration.MethodTreeImpl)1 ModifiersTreeImpl (org.sonar.java.model.declaration.ModifiersTreeImpl)1 NewClassTreeImpl (org.sonar.java.model.expression.NewClassTreeImpl)1 Type (org.sonar.plugins.java.api.semantic.Type)1 AnnotationTree (org.sonar.plugins.java.api.tree.AnnotationTree)1 ArrayDimensionTree (org.sonar.plugins.java.api.tree.ArrayDimensionTree)1