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

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodBinding.signature()


    byte methodIndexByte1 = 0;
    byte methodIndexByte2 = 0;
    if (this.referenceBinding instanceof LocalTypeBinding) {
      MethodBinding methodBinding = ((LocalTypeBinding) this.referenceBinding).enclosingMethod;
      if (methodBinding != null) {
        int enclosingMethodIndex = this.constantPool.literalIndexForNameAndType(methodBinding.selector, methodBinding.signature(this));
        methodIndexByte1 = (byte) (enclosingMethodIndex >> 8);
        methodIndexByte2 = (byte) enclosingMethodIndex;
      }
    }
    this.contents[localContentsOffset++] = methodIndexByte1;
View Full Code Here


    byte methodIndexByte1 = 0;
    byte methodIndexByte2 = 0;
    if (this.referenceBinding instanceof LocalTypeBinding) {
      MethodBinding methodBinding = ((LocalTypeBinding) this.referenceBinding).enclosingMethod;
      if (methodBinding != null) {
        int enclosingMethodIndex = this.constantPool.literalIndexForNameAndType(methodBinding.selector, methodBinding.signature(this));
        methodIndexByte1 = (byte) (enclosingMethodIndex >> 8);
        methodIndexByte2 = (byte) enclosingMethodIndex;
      }
    }
    this.contents[localContentsOffset++] = methodIndexByte1;
View Full Code Here

      byte methodIndexByte1 = 0;
      byte methodIndexByte2 = 0;
      if (this.referenceBinding instanceof LocalTypeBinding) {
        MethodBinding methodBinding = ((LocalTypeBinding) this.referenceBinding).enclosingMethod;
        if (methodBinding != null) {
          int enclosingMethodIndex = this.constantPool.literalIndexForNameAndType(methodBinding.selector, methodBinding.signature(this));
          methodIndexByte1 = (byte) (enclosingMethodIndex >> 8);
          methodIndexByte2 = (byte) enclosingMethodIndex;
        }
      }
      this.contents[this.contentsOffset++] = methodIndexByte1;
View Full Code Here

          char[] constantPoolName = methodBinding.declaringClass.constantPoolName();
          if (constantPoolName == null) return null;
          binaryName
            .append(CharOperation.replaceOnCopy(constantPoolName, '/', '.'))
            .append('$')
            .append(methodBinding.signature())
            .append('$')
            .append(typeVariableBinding.sourceName);
          break;
        default :
          org.eclipse.jdt.internal.compiler.lookup.TypeBinding typeBinding = (org.eclipse.jdt.internal.compiler.lookup.TypeBinding) declaring;
View Full Code Here

     for (int i = 0, methodLength = methods.length; i < methodLength; i++) {
      MethodBinding method = methods[i];
      if (CharOperation.equals(selector, method.selector) || (selector.length == 0 && method.isConstructor())) {
        char[] methodSignature = method.genericSignature();
        if (methodSignature == null)
          methodSignature = method.signature();
        if (CharOperation.equals(signature, methodSignature)) {
          this.typeBinding = null;
          this.methodBinding = method;
          this.compilerBinding = this.methodBinding;
          return;
View Full Code Here

    byte methodIndexByte1 = 0;
    byte methodIndexByte2 = 0;
    if (this.referenceBinding instanceof LocalTypeBinding) {
      MethodBinding methodBinding = ((LocalTypeBinding) this.referenceBinding).enclosingMethod;
      if (methodBinding != null) {
        int enclosingMethodIndex = this.constantPool.literalIndexForNameAndType(methodBinding.selector, methodBinding.signature(this));
        methodIndexByte1 = (byte) (enclosingMethodIndex >> 8);
        methodIndexByte2 = (byte) enclosingMethodIndex;
      }
    }
    this.contents[localContentsOffset++] = methodIndexByte1;
View Full Code Here

    byte methodIndexByte1 = 0;
    byte methodIndexByte2 = 0;
    if (this.referenceBinding instanceof LocalTypeBinding) {
      MethodBinding methodBinding = ((LocalTypeBinding) this.referenceBinding).enclosingMethod;
      if (methodBinding != null) {
        int enclosingMethodIndex = this.constantPool.literalIndexForNameAndType(methodBinding.selector, methodBinding.signature(this));
        methodIndexByte1 = (byte) (enclosingMethodIndex >> 8);
        methodIndexByte2 = (byte) enclosingMethodIndex;
      }
    }
    this.contents[localContentsOffset++] = methodIndexByte1;
View Full Code Here

     for (int i = 0, methodLength = methods.length; i < methodLength; i++) {
      MethodBinding method = methods[i];
      if (CharOperation.equals(selector, method.selector) || (selector.length == 0 && method.isConstructor())) {
        char[] methodSignature = method.genericSignature();
        if (methodSignature == null)
          methodSignature = method.signature();
        if (CharOperation.equals(signature, methodSignature)) {
          this.typeBinding = null;
          this.methodBinding = method;
          this.compilerBinding = this.methodBinding;
          return;
View Full Code Here

          char[] constantPoolName = methodBinding.declaringClass.constantPoolName();
          if (constantPoolName == null) return null;
          binaryName
            .append(CharOperation.replaceOnCopy(constantPoolName, '/', '.'))
            .append('$')
            .append(methodBinding.signature())
            .append('$')
            .append(typeVariableBinding.sourceName);
          break;
        default :
          org.eclipse.jdt.internal.compiler.lookup.TypeBinding typeBinding = (org.eclipse.jdt.internal.compiler.lookup.TypeBinding) declaring;
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.