Examples of sourceName()


Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.sourceName()

          if (classFile == null) return null;
          return (JavaElement) classFile.getType();
        }
        ICompilationUnit cu = getCompilationUnit(fileName, workingCopyOwner);
        if (cu == null) return null;
        return (JavaElement) cu.getType(new String(referenceBinding.sourceName()));
      } else {
        // member type
        IType declaringType = (IType) getUnresolvedJavaElement(declaringTypeBinding, workingCopyOwner, bindingsToNodes);
        if (declaringType == null) return null;
        return (JavaElement) declaringType.getType(new String(referenceBinding.sourceName()));
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.sourceName()

        return (JavaElement) cu.getType(new String(referenceBinding.sourceName()));
      } else {
        // member type
        IType declaringType = (IType) getUnresolvedJavaElement(declaringTypeBinding, workingCopyOwner, bindingsToNodes);
        if (declaringType == null) return null;
        return (JavaElement) declaringType.getType(new String(referenceBinding.sourceName()));
      }
    }
  }

  /*
 
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.sourceName()

        this.contents[localContentsOffset++] = 0;
        this.contents[localContentsOffset++] = 0;
      }
      // name index
      if (!innerClass.isAnonymousType()) {
        int nameIndex = this.constantPool.literalIndex(innerClass.sourceName());
        this.contents[localContentsOffset++] = (byte) (nameIndex >> 8);
        this.contents[localContentsOffset++] = (byte) nameIndex;
      } else {
        // equals to 0 if the innerClass is an anonymous type
        this.contents[localContentsOffset++] = 0;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.sourceName()

      scope.problemReporter().typeMismatchError(enclosingInstanceType, expectedType, this.enclosingInstance, null);
      return this.resolvedType = receiverType;
    }
    ReferenceBinding superType = (ReferenceBinding) receiverType;
    if (superType.isTypeVariable()) {
      superType = new ProblemReferenceBinding(new char[][]{superType.sourceName()}, superType, ProblemReasons.IllegalSuperTypeVariable);
      scope.problemReporter().invalidType(this, superType);
      return null;
    } else if (this.type != null && superType.isEnum()) { // tolerate enum constant body
      scope.problemReporter().cannotInstantiate(this.type, superType);
      return this.resolvedType = superType;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.sourceName()

          this.contents[this.contentsOffset++] = 0;
          this.contents[this.contentsOffset++] = 0;
        }
        // name index
        if (!innerClass.isAnonymousType()) {
          int nameIndex = this.constantPool.literalIndex(innerClass.sourceName());
          this.contents[this.contentsOffset++] = (byte) (nameIndex >> 8);
          this.contents[this.contentsOffset++] = (byte) nameIndex;
        } else {
          // equals to 0 if the innerClass is an anonymous type
          this.contents[this.contentsOffset++] = 0;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.sourceName()

   */
  @Override
  public Name getSimpleName()
  {
    ReferenceBinding binding = (ReferenceBinding)_binding;
    return new NameImpl(binding.sourceName());
  }

  @Override
  public TypeMirror getSuperclass() {
    ReferenceBinding binding = (ReferenceBinding)_binding;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.sourceName()

        // does not exist
        return null;
      }
    } else if (referenceBinding.isTypeVariable()) {
      // type parameter
      final String typeVariableName = new String(referenceBinding.sourceName());
      org.eclipse.jdt.internal.compiler.lookup.Binding declaringElement = ((org.eclipse.jdt.internal.compiler.lookup.TypeVariableBinding) referenceBinding).declaringElement;
      if (declaringElement instanceof MethodBinding) {
        IMethod declaringMethod = (IMethod) getUnresolvedJavaElement((MethodBinding) declaringElement, workingCopyOwner, bindingsToNodes);
        return (JavaElement) declaringMethod.getTypeParameter(typeVariableName);
      } else {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.sourceName()

          if (classFile == null) return null;
          return (JavaElement) classFile.getType();
        }
        ICompilationUnit cu = getCompilationUnit(fileName, workingCopyOwner);
        if (cu == null) return null;
        return (JavaElement) cu.getType(new String(referenceBinding.sourceName()));
      } else {
        // member type
        IType declaringType = (IType) getUnresolvedJavaElement(declaringTypeBinding, workingCopyOwner, bindingsToNodes);
        if (declaringType == null) return null;
        return (JavaElement) declaringType.getType(new String(referenceBinding.sourceName()));
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.sourceName()

        return (JavaElement) cu.getType(new String(referenceBinding.sourceName()));
      } else {
        // member type
        IType declaringType = (IType) getUnresolvedJavaElement(declaringTypeBinding, workingCopyOwner, bindingsToNodes);
        if (declaringType == null) return null;
        return (JavaElement) declaringType.getType(new String(referenceBinding.sourceName()));
      }
    }
  }

  /*
 
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.sourceName()

        this.contents[localContentsOffset++] = 0;
        this.contents[localContentsOffset++] = 0;
      }
      // name index
      if (!innerClass.isAnonymousType()) {
        int nameIndex = this.constantPool.literalIndex(innerClass.sourceName());
        this.contents[localContentsOffset++] = (byte) (nameIndex >> 8);
        this.contents[localContentsOffset++] = (byte) nameIndex;
      } else {
        // equals to 0 if the innerClass is an anonymous type
        this.contents[localContentsOffset++] = 0;
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.