Package org.aspectj.org.eclipse.jdt.internal.compiler.ast

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.FieldDeclaration.resolve()


      if (originalField.declaringClass instanceof SourceTypeBinding) {
        SourceTypeBinding sourceType = (SourceTypeBinding) originalField.declaringClass;
        if (sourceType.scope != null) {
          TypeDeclaration typeDecl = sourceType.scope.referenceContext;
          FieldDeclaration fieldDecl = typeDecl.declarationOf(originalField);
          fieldDecl.resolve(originalField.isStatic() //side effect on binding
              ? typeDecl.staticInitializerScope
              : typeDecl.initializerScope);
          fieldConstant = originalField.constant();
        } else {
          fieldConstant = Constant.NotAConstant; // shouldn't occur per construction (paranoid null check)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.