Examples of methods()


Examples of org.dyno.visual.swing.plugin.spi.IEventListenerModel.methods()

          for (EventSetDescriptor key : keys) {
            EventSet set = new EventSet(key, key.getDisplayName(), ed);
            eventSets.add(set);
            IEventListenerModel model = events.get(key);
            List<EventMethod> mlist = new ArrayList<EventMethod>();
            for (MethodDescriptor mthd : model.methods()) {
              EventMethod method = new EventMethod(mthd, model.getDisplayName(mthd), set);
              mlist.add(method);
            }
            set.setMethods(mlist);
          }
View Full Code Here

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

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

  }

  @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

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

  @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

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

    }
    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

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

        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

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

  }

  @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

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

  @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

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

    }
    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

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

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