Examples of FlagsMethodFilter


Examples of org.springframework.ide.eclipse.core.java.FlagsMethodFilter

    if (BeansEditorUtils.getFile(contentAssistRequest) instanceof IFile) {
      final IFile file = BeansEditorUtils.getFile(contentAssistRequest);

      IMethodFilter filter = null;
      if (onlySetter) {
        filter = new FlagsMethodFilter(FlagsMethodFilter.NOT_INTERFACE
            | FlagsMethodFilter.NOT_CONSTRUCTOR
            | FlagsMethodFilter.PUBLIC,1);
       
      } else {
        filter = new FlagsMethodFilter(FlagsMethodFilter.NOT_VOID
            | FlagsMethodFilter.NOT_INTERFACE
            | FlagsMethodFilter.NOT_CONSTRUCTOR
            | FlagsMethodFilter.PUBLIC);
      }
 
View Full Code Here

Examples of org.springframework.ide.eclipse.core.java.FlagsMethodFilter

     
      methodHolder.clear();
     
      if (type != null) {
        IMethodFilter filter = null;     
        filter = new FlagsMethodFilter(FlagsMethodFilter.NOT_INTERFACE
            | FlagsMethodFilter.NOT_CONSTRUCTOR
            | FlagsMethodFilter.PUBLIC
            | FlagsMethodFilter.NOT_VOID);       
        for (IMethod method : Introspector.findAllMethods(type, filter)) {
          methodHolder.getGetMethods().add(method);
        }   
       
        filter = new FlagsMethodFilter(FlagsMethodFilter.NOT_INTERFACE
            | FlagsMethodFilter.NOT_CONSTRUCTOR
            | FlagsMethodFilter.PUBLIC);
       
        for (IMethod method : Introspector.findAllMethods(type, filter)) {
          try {
            if (method.getParameterNames().length > 0)
              methodHolder.getSetMethods().add(method);
          } catch (JavaModelException e) {
            //skip
          }
        }         
       
        filter = new FlagsMethodFilter(FlagsMethodFilter.NOT_INTERFACE
            | FlagsMethodFilter.STATIC
            | FlagsMethodFilter.PUBLIC);       
        for (IMethod method : Introspector.findAllMethods(type, filter)) {
          methodHolder.getCreateMethods().add(method);
        }
View Full Code Here

Examples of org.springframework.ide.eclipse.core.java.FlagsMethodFilter

      IContentAssistContext context, final String factoryClassName, boolean isStatic) {
    final IFile file = context.getFile();

    IMethodFilter filter = null;
    if (isStatic) {
      filter = new FlagsMethodFilter(FlagsMethodFilter.STATIC | FlagsMethodFilter.NOT_VOID
          | FlagsMethodFilter.NOT_INTERFACE | FlagsMethodFilter.NOT_CONSTRUCTOR);
    }
    else {
      filter = new FlagsMethodFilter(FlagsMethodFilter.NOT_VOID
          | FlagsMethodFilter.NOT_INTERFACE | FlagsMethodFilter.NOT_CONSTRUCTOR);
    }

    IContentAssistCalculator calculator = new MethodContentAssistCalculator(filter) {
     
View Full Code Here

Examples of org.springframework.ide.eclipse.core.java.FlagsMethodFilter

* @since 2.2.1
*/
public class RegistrationMethodContentAssistCalculator extends MethodContentAssistCalculator {

  public RegistrationMethodContentAssistCalculator() {
    super(new FlagsMethodFilter(FlagsMethodFilter.NOT_INTERFACE
        | FlagsMethodFilter.NOT_CONSTRUCTOR));
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.core.java.FlagsMethodFilter

* @since 2.0.2
*/
public class AdviceMethodContentAssistCalculator extends MethodContentAssistCalculator {

  public AdviceMethodContentAssistCalculator() {
    super(new FlagsMethodFilter(FlagsMethodFilter.PUBLIC | FlagsMethodFilter.NOT_CONSTRUCTOR
        | FlagsMethodFilter.NOT_INTERFACE));
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.core.java.FlagsMethodFilter

  private static final String EVENT_CLASS = "org.springframework.webflow.execution.Event";

  private static final String REQUEST_CONTEXT_CLASS = "org.springframework.webflow.execution.RequestContext";

  public static IMethodFilter getBeanMethodFilter() {
    return new FlagsMethodFilter(FlagsMethodFilter.PUBLIC
        | FlagsMethodFilter.NOT_INTERFACE
        | FlagsMethodFilter.NOT_CONSTRUCTOR, EVENT_CLASS,
        new String[] { REQUEST_CONTEXT_CLASS });
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.core.java.FlagsMethodFilter

        | FlagsMethodFilter.NOT_CONSTRUCTOR, EVENT_CLASS,
        new String[] { REQUEST_CONTEXT_CLASS });
  }

  public static IMethodFilter getBeanActionMethodFilter() {
    return new FlagsMethodFilter(FlagsMethodFilter.PUBLIC
        | FlagsMethodFilter.NOT_INTERFACE
        | FlagsMethodFilter.NOT_CONSTRUCTOR);
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.core.java.FlagsMethodFilter

*/
public class BeanActionMethodContentAssistCalculator extends
    WebflowActionMethodContentAssistCalculator {

  public BeanActionMethodContentAssistCalculator() {
    super(new FlagsMethodFilter(FlagsMethodFilter.PUBLIC
        | FlagsMethodFilter.NOT_INTERFACE
        | FlagsMethodFilter.NOT_CONSTRUCTOR));
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.core.java.FlagsMethodFilter

  private static final String REQUEST_CONTEXT_CLASS =
    "org.springframework.webflow.execution.RequestContext";

  public BeanMethodContentAssistCalculator() {
    super(new FlagsMethodFilter(FlagsMethodFilter.PUBLIC
        | FlagsMethodFilter.NOT_INTERFACE
        | FlagsMethodFilter.NOT_CONSTRUCTOR, EVENT_CLASS,
        new String[] { REQUEST_CONTEXT_CLASS }));
  }
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.