Package org.eclipse.jdt.internal.compiler.env

Examples of org.eclipse.jdt.internal.compiler.env.IBinaryMethod


public boolean isConstructor() throws JavaModelException {
  if (!getElementName().equals(this.parent.getElementName())) {
    // faster than reaching the info
    return false;
  }
  IBinaryMethod info = (IBinaryMethod) getElementInfo();
  return info.isConstructor();
}
View Full Code Here


    toStringName(buffer);
    buffer.append(" (not open)"); //$NON-NLS-1$
  } else if (info == NO_INFO) {
    toStringName(buffer);
  } else {
    IBinaryMethod methodInfo = (IBinaryMethod) info;
    int flags = methodInfo.getModifiers();
    if (Flags.isStatic(flags)) {
      buffer.append("static "); //$NON-NLS-1$
    }
    if (!methodInfo.isConstructor()) {
      buffer.append(Signature.toString(getReturnType(methodInfo)));
      buffer.append(' ');
    }
    toStringName(buffer, flags);
  }
View Full Code Here

   
    String methodName = method.getElementName();
    if (method.isConstructor()) {
      methodName = typeQualifiedName;
    }
    IBinaryMethod info = (IBinaryMethod) method.getElementInfo();

    char[] genericSignature = info.getGenericSignature();
    String anchor = null;
    if (genericSignature != null) {
      genericSignature = CharOperation.replaceOnCopy(genericSignature, '/', '.');
      anchor = Util.toAnchor(0, genericSignature, methodName, Flags.isVarargs(method.getFlags()));
      if (anchor == null) throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.UNKNOWN_JAVADOC_FORMAT, method));
View Full Code Here

    IBinaryMethod[] existingMs = existingType.binMethods;
    if (newMethods.length != existingMs.length)
      return true;
    new_method_loop: for (int i = 0; i < newMethods.length; i++) {
      IBinaryMethod method = newMethods[i];
      char[] methodName = method.getSelector();
      for (int j = 0; j < existingMs.length; j++) {
        if (CharOperation.equals(existingMs[j].getSelector(), methodName)) {
          // candidate match
          if (!CharOperation.equals(method.getMethodDescriptor(), existingMs[j].getMethodDescriptor())) {
            continue; // might be overloading
          }
          else {
            // matching sigs
            if (!modifiersEqual(method.getModifiers(), existingMs[j].getModifiers())) {
              return true;
            }
            if ((flags & FLAG_ANNOTATION) != 0) {
              if (!annotationsEqual(method.getAnnotations(), existingMs[j].getAnnotations(), flags)) {
                return true;
              }
             
              if (!parameterAnnotationsEquals(method, existingMs[j], flags)) {
                return true;
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.env.IBinaryMethod

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.