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

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.IPrivilegedHandler


  if (this.binding.isPrivate()){

    // AspectJ extension
    // Ok, it is a private method call - check if this has been allowed through
    // the compiler because of privilege?
    IPrivilegedHandler iph = Scope.findPrivilegedHandler(currentScope.invocationType());
    if (iph != null) {
      // ??? Should getPriviligedAccessMethod() provide a flag to indicate
      // if you *want* to build a new accessor or if you just want to see if
      // one already exists?
      MethodBinding privAccessor = iph.getPrivilegedAccessMethod(binding,null);
      syntheticAccessor = privAccessor;
      return;
    }
    // End AspectJ extension
   
View Full Code Here


        ResolvedType theAspect = m.getAspectType();
        if (!checked.contains(theAspect)) {
          TypeBinding tb = factory.makeTypeBinding(m.getAspectType());
          // Let's check the privilegedHandler from that aspect
          if (tb instanceof SourceTypeBinding) { // BinaryTypeBinding is also a SourceTypeBinding ;)
            IPrivilegedHandler privilegedHandler = ((SourceTypeBinding) tb).privilegedHandler;
            if (privilegedHandler != null) {
              if (privilegedHandler.definesPrivilegedAccessToField(fieldDecl.binding)) {
                return;
              }
            } else if (theAspect instanceof ReferenceType) {
              // ResolvedMember rm = factory.makeResolvedMember(fieldDecl.binding);
              String fname = new String(fieldDecl.name);
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.IPrivilegedHandler

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.