Examples of MethodPattern


Examples of org.eclipse.jdt.internal.core.search.matching.MethodPattern

private static IJavaElement[] getFocusedElementsAndTypes(SearchPattern pattern, IJavaElement focusElement, ObjectVector superTypes) throws JavaModelException {
  if (pattern instanceof MethodPattern) {
    // For method pattern, it needs to walk along the focus type super hierarchy
    // and add jars/projects of all the encountered types.
    IType type = (IType) pattern.focus.getAncestor(IJavaElement.TYPE);
    MethodPattern methodPattern = (MethodPattern) pattern;
    String selector = new String(methodPattern.selector);
    int parameterCount = methodPattern.parameterCount;
    ITypeHierarchy superHierarchy = type.newSupertypeHierarchy(null);
    IType[] allTypes = superHierarchy.getAllSupertypes(type);
    int length = allTypes.length;
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.