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

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


      }
      Map<String, MethodBinding> methodSignatures = new HashMap<String, MethodBinding>();
      Map<String, MethodBinding> noExports = new HashMap<String, MethodBinding>();

      checkJsTypeMethodsForOverloads(methodSignatures, noExports, binding);
      for (MethodBinding mb : binding.methods()) {
        checkJsProperty(mb, true);
        checkJsExport(mb, !binding.isInterface());
      }
    }
View Full Code Here


  }

  @Override
  public List<? extends Element> getEnclosedElements() {
    ReferenceBinding binding = (ReferenceBinding)_binding;
    List<Element> enclosed = new ArrayList<Element>(binding.fieldCount() + binding.methods().length);
    for (MethodBinding method : binding.methods()) {
      ExecutableElement executable = new ExecutableElementImpl(_env, method);
      enclosed.add(executable);
    }
    for (FieldBinding field : binding.fields()) {
View Full Code Here

  @Override
  public List<? extends Element> getEnclosedElements() {
    ReferenceBinding binding = (ReferenceBinding)_binding;
    List<Element> enclosed = new ArrayList<Element>(binding.fieldCount() + binding.methods().length);
    for (MethodBinding method : binding.methods()) {
      ExecutableElement executable = new ExecutableElementImpl(_env, method);
      enclosed.add(executable);
    }
    for (FieldBinding field : binding.fields()) {
      // TODO no field should be excluded according to the JLS
View Full Code Here

    }
    ElementValuePair[] pairs = _binding.getElementValuePairs();
    ReferenceBinding annoType = _binding.getAnnotationType();
    Map<ExecutableElement, AnnotationValue> valueMap =
      new LinkedHashMap<ExecutableElement, AnnotationValue>();
    for (MethodBinding method : annoType.methods()) {
      // if binding is in ElementValuePair list, then get value from there
      boolean foundExplicitValue = false;
      for (int i = 0; i < pairs.length; ++i) {
        MethodBinding explicitBinding = pairs[i].getMethodBinding();
        if (method == explicitBinding) {
View Full Code Here

        case METHOD :
          MethodBinding methodBinding = (MethodBinding) elementImpl._binding;
          if (methodBinding.declaringClass != referenceBinding) {
            throw new IllegalArgumentException("element is not valid for the containing declared type"); //$NON-NLS-1$
          }
          for (MethodBinding method : referenceBinding.methods()) {
            if (CharOperation.equals(method.selector, methodBinding.selector)
                && method.areParameterErasuresEqual(methodBinding)) {
              return this._env.getFactory().newTypeMirror(method);
            }
          }
View Full Code Here

  }

  @Override
  public List<? extends Element> getEnclosedElements() {
    ReferenceBinding binding = (ReferenceBinding)_binding;
    List<Element> enclosed = new ArrayList<Element>(binding.fieldCount() + binding.methods().length);
    for (MethodBinding method : binding.methods()) {
      ExecutableElement executable = new ExecutableElementImpl(_env, method);
      enclosed.add(executable);
    }
    for (FieldBinding field : binding.fields()) {
View Full Code Here

  @Override
  public List<? extends Element> getEnclosedElements() {
    ReferenceBinding binding = (ReferenceBinding)_binding;
    List<Element> enclosed = new ArrayList<Element>(binding.fieldCount() + binding.methods().length);
    for (MethodBinding method : binding.methods()) {
      ExecutableElement executable = new ExecutableElementImpl(_env, method);
      enclosed.add(executable);
    }
    for (FieldBinding field : binding.fields()) {
      // TODO no field should be excluded according to the JLS
View Full Code Here

    }
    ElementValuePair[] pairs = _binding.getElementValuePairs();
    ReferenceBinding annoType = _binding.getAnnotationType();
    Map<ExecutableElement, AnnotationValue> valueMap =
      new LinkedHashMap<ExecutableElement, AnnotationValue>();
    for (MethodBinding method : annoType.methods()) {
      // if binding is in ElementValuePair list, then get value from there
      boolean foundExplicitValue = false;
      for (int i = 0; i < pairs.length; ++i) {
        MethodBinding explicitBinding = pairs[i].getMethodBinding();
        if (method == explicitBinding) {
View Full Code Here

        case METHOD :
          MethodBinding methodBinding = (MethodBinding) elementImpl._binding;
          if (methodBinding.declaringClass != referenceBinding) {
            throw new IllegalArgumentException("element is not valid for the containing declared type"); //$NON-NLS-1$
          }
          for (MethodBinding method : referenceBinding.methods()) {
            if (CharOperation.equals(method.selector, methodBinding.selector)
                && method.areParameterErasuresEqual(methodBinding)) {
              return this._env.getFactory().newTypeMirror(method);
            }
          }
View Full Code Here

          errorOn(type, ERR_JS_TYPE_WITH_PROTOTYPE_SET_NOT_ALLOWED_ON_CLASS_TYPES);
        }
      }
      Map<String, MethodBinding> methodSignatures = new HashMap<String, MethodBinding>();
      checkJsTypeMethodsForOverloads(methodSignatures, binding);
      for (MethodBinding mb : binding.methods()) {
        checkJsProperty(mb, true);
        checkJsExport(mb, false);
      }
    }
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.