title: How to retrieve full type name of method variable from ASTParser
body: <p>I want to parse interface java file with <code>ASTParser</code>, extract declared methods and get full type (including Package name) of the variables.</p>
  
  <pre><code>compilationUnit.accept(new ASTVisitor() {
  
              public boolean visit(MethodDeclaration methodVisitor) {
  
                  if (methodVisitor != null) {
  
                      for (Object parameter : methodVisitor.parameters()) {
                          VariableDeclaration variableDeclaration = (VariableDeclaration) parameter;
                          String type = variableDeclaration.getStructuralProperty(SingleVariableDeclaration.TYPE_PROPERTY).toString();
  
                      }
                  }
                  return true;
              }
  
          });
  </code></pre>
  
  <p>The type returned from <code>variableDeclaration.getStructuralProperty(SingleVariableDeclaration.TYPE_PROPERTY)</code><br>
  contains just the  variable's Class name and not the package.</p>
  
  <p>How can I get full type name?</p>