Package org.eclipse.dltk.internal.core.search.matching

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


//    case IIndexConstants.LOCAL_VAR_PATTERN: {
//      LocalVariablePattern varPattern = (LocalVariablePattern) pattern;
//      return new DeeNodePatternMatcher2Extension(deeMatchLocator, pattern, varPattern.name, null, null);
//    }
    case IIndexConstants.METHOD_PATTERN: {
      MethodPattern methodPattern = (MethodPattern) pattern;
      char[] simpleName = methodPattern.selector;
      char[] qualification = CharOperation.concat(methodPattern.declaringQualificationName,
          methodPattern.declaringSimpleName, '$');
      return new DeeNameNodeMatcher(deeMatchLocator, pattern, methodPattern.findDeclarations,
          simpleName, qualification);
View Full Code Here


      PHPCallExpression pce = (PHPCallExpression) reference;
      ISourceModule module = (ISourceModule) enclosingElement
          .getAncestor(IModelElement.SOURCE_MODULE);
      if (module != null) {
        try {
          MethodPattern methodPattern = (MethodPattern) pattern;
          IModelElement[] elements = module.codeSelect(pce
              .getCallName().sourceStart(), 0);
          if (elements == null || elements.length == 0) {
            return super.newMethodReferenceMatch(enclosingElement,
                accuracy, offset, length, isConstructor,
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.internal.core.search.matching.MethodPattern

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.