Examples of sourceName()


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

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

  /*
 
View Full Code Here

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

    if (sourceType instanceof BinaryTypeBinding) {
      // In this case we can't access the source type binding to add a new annotation, so let's put something
      // on the weaver type temporarily
      ResolvedType theTargetType = factory.fromEclipse(sourceType);
      TypeBinding theAnnotationType = toAdd[0].resolvedType;
      String name = new String(theAnnotationType.qualifiedPackageName())+"."+new String(theAnnotationType.sourceName());
      String sig = new String(theAnnotationType.signature());
      if (theTargetType.hasAnnotation(UnresolvedType.forSignature(sig))) {
        CompilationAndWeavingContext.leavingPhase(tok);
        return false;
      }
View Full Code Here

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

      }
    }
     TypeVariableBinding[] typeVariableBindings = this.methodBinding != null ? this.methodBinding.typeVariables() : this.typeBinding.typeVariables();
     for (int i = 0, length = typeVariableBindings.length; i < length; i++) {
      TypeVariableBinding typeVariableBinding = typeVariableBindings[i];
      if (CharOperation.equals(typeVariableName, typeVariableBinding.sourceName())) {
        this.typeBinding = typeVariableBinding;
        return;
      }
    }
  }
View Full Code Here

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

        return new String(typeVariableBinding.sourceName);

      case Binding.PARAMETERIZED_TYPE :
        ParameterizedTypeBinding parameterizedTypeBinding = (ParameterizedTypeBinding) this.binding;
        buffer = new StringBuffer();
        buffer.append(parameterizedTypeBinding.sourceName());
        ITypeBinding[] tArguments = getTypeArguments();
        final int typeArgumentsLength = tArguments.length;
        if (typeArgumentsLength != 0) {
          buffer.append('<');
          for (int i = 0; i < typeArgumentsLength; i++) {
View Full Code Here

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

        if (isMember()) {
          buffer
            .append(getDeclaringClass().getQualifiedName())
            .append('.');
          ParameterizedTypeBinding parameterizedTypeBinding = (ParameterizedTypeBinding) this.binding;
          buffer.append(parameterizedTypeBinding.sourceName());
          ITypeBinding[] tArguments = getTypeArguments();
          final int typeArgumentsLength = tArguments.length;
          if (typeArgumentsLength != 0) {
            buffer.append('<');
            for (int i = 0; i < typeArgumentsLength; i++) {
View Full Code Here

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

        return new String(typeVariableBinding.sourceName);

      case Binding.PARAMETERIZED_TYPE :
        ParameterizedTypeBinding parameterizedTypeBinding = (ParameterizedTypeBinding) this.binding;
        buffer = new StringBuffer();
        buffer.append(parameterizedTypeBinding.sourceName());
        ITypeBinding[] tArguments = getTypeArguments();
        final int typeArgumentsLength = tArguments.length;
        if (typeArgumentsLength != 0) {
          buffer.append('<');
          for (int i = 0; i < typeArgumentsLength; i++) {
View Full Code Here

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

        if (isMember()) {
          buffer
            .append(getDeclaringClass().getQualifiedName())
            .append('.');
          ParameterizedTypeBinding parameterizedTypeBinding = (ParameterizedTypeBinding) this.binding;
          buffer.append(parameterizedTypeBinding.sourceName());
          ITypeBinding[] tArguments = getTypeArguments();
          final int typeArgumentsLength = tArguments.length;
          if (typeArgumentsLength != 0) {
            buffer.append('<');
            for (int i = 0; i < typeArgumentsLength; i++) {
View Full Code Here

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

        return null;
     
    }
    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[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()

        // 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
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.