Examples of FieldBinding


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

  if (this.binding instanceof ProblemBinding && ((ProblemBinding) this.binding).problemId() == NotFound){
    if (this.evaluationContext.declaringTypeName != null) {
      this.delegateThis = scope.getField(scope.enclosingSourceType(), DELEGATE_THIS, this);
      if (this.delegateThis != null){  // if not found then internal error, field should have been found
        // will not support innerclass emulation inside delegate
        FieldBinding fieldBinding = scope.getField(this.delegateThis.type, this.token, this);
        if (!fieldBinding.isValidBinding()) {
          if (((ProblemFieldBinding) fieldBinding).problemId() == NotVisible) {
            // manage the access to a private field of the enclosing type
            CodeSnippetScope localScope = new CodeSnippetScope(scope);
            this.codegenBinding = this.binding = localScope.getFieldForCodeSnippet(this.delegateThis.type, this.token, this);
            return checkFieldAccess(scope);           
View Full Code Here

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

  }

  private void mungeNewField(SourceTypeBinding sourceType, NewFieldTypeMunger munger) {
    if (shouldTreatAsPublic() && !targetTypeX.isInterface()) {
      FieldBinding binding = world.makeFieldBinding(munger);
      findOrCreateInterTypeMemberFinder(sourceType).addInterTypeField(binding);
      // classScope.referenceContext.binding.addField(binding);
    } else {
      InterTypeFieldBinding binding = new InterTypeFieldBinding(world, munger, aspectType, sourceMethod);
      InterTypeMemberFinder finder = findOrCreateInterTypeMemberFinder(sourceType);
View Full Code Here

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

      baseField = ((ParameterizedFieldBinding) baseField).originalField;
    }
    ResolvedMember key = inAspect.factory.makeResolvedMember(baseField);
    if (accessors.containsKey(key))
      return (FieldBinding) accessors.get(key);
    FieldBinding ret = new PrivilegedFieldBinding(inAspect, baseField);
    checkWeaveAccess(key.getDeclaringType(), location);
    if (!baseField.alwaysNeedsAccessMethod(true))
      accessors.put(key, ret);
    // 307120
    ResolvedType rt = inAspect.factory.fromEclipse(baseField.declaringClass);
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.FieldBinding

        return processThisConstructorCall(x);
      }
    }

    JExpression processExpression(FieldReference x) {
      FieldBinding fieldBinding = x.binding;
      JField field;
      if (fieldBinding.declaringClass == null) {
        // probably array.length
        field = program.getIndexedField("Array.length");
        if (!field.getName().equals(String.valueOf(fieldBinding.name))) {
View Full Code Here

Examples of wyvern.targets.java.bindings.FieldBinding

  }

  @Override
  public Object visit(VarDef varDef) {
    Type type = ctx.getType(varDef.getType(), true);
    new FieldBinding(varDef.getName(), type);
    output.visitField(ACC_PUBLIC, varDef.getName(), type.getDescriptor(), null, null);
    return null;
  }
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.