Package org.eclipse.jdt.core.dom

Examples of org.eclipse.jdt.core.dom.BodyDeclaration


      provider.resolveAutowiredDependencies();
      List<ValidationProblem> problems = provider.getValidationProblems();
      for (ValidationProblem problem : problems) {
        ValidationProblemAttribute[] problemAttributes = problem.getAttributes();
        boolean matched = false;
        BodyDeclaration problemDecl = null;
        String typeName = null;

        for (ValidationProblemAttribute problemAttribute : problemAttributes) {

          if (AutowireDependencyProvider.AUTOWIRE_PROBLEM_TYPE.equals(problemAttribute.getKey())) {
            if (problemType.equals(problemAttribute.getValue())) {
              matched = true;
            }
          }
          else if ("JAVA_HANDLE".equals(problemAttribute.getKey())) {
            problemDecl = getBodyDeclaration(JavaCore.create((String) problemAttribute.getValue()));
          }
          else if (AutowireDependencyProvider.BEAN_TYPE.equals(problemAttribute.getKey())) {
            typeName = (String) problemAttribute.getValue();
          }
        }

        if (matched && problemDecl != null && problemDecl.equals(declToMatch)) {
          if (typeNameToMatch == null || (typeName != null && typeName.equals(typeNameToMatch))) {
            return problem;
          }
        }
      }
View Full Code Here


              if ("qualifier".startsWith(annotation.toLowerCase())) {
                if (viewer instanceof ISourceViewer) {
                  AssistContext assistContext = new AssistContext(javaContext.getCompilationUnit(),
                      (ISourceViewer) viewer, start - 1, end - start + 1);
                  ASTNode annotationNode = assistContext.getCoveredNode();
                  BodyDeclaration decl = getParentDeclaration(annotationNode);

                  if (decl instanceof FieldDeclaration) {
                    // FieldDeclaration fieldDecl =
                    // (FieldDeclaration) decl;
                    // ITypeBinding typeBinding =
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.core.dom.BodyDeclaration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.