Java 类org.eclipse.jdt.core.dom.SuperMethodReference 实例源码

项目:Eclipse-Postfix-Code-Completion    文件:InlineConstantRefactoring.java   
@Override
public boolean visit(Name name) {
    StructuralPropertyDescriptor locationInParent= name.getLocationInParent();
    if (locationInParent == ExpressionMethodReference.NAME_PROPERTY
            || locationInParent == TypeMethodReference.NAME_PROPERTY
            || locationInParent == SuperMethodReference.NAME_PROPERTY) {
        return false;
    }

    SimpleName leftmost= getLeftmost(name);

    IBinding leftmostBinding= leftmost.resolveBinding();
    if (leftmostBinding instanceof IVariableBinding || leftmostBinding instanceof IMethodBinding || leftmostBinding instanceof ITypeBinding) {
        if (shouldUnqualify(leftmost))
            unqualifyMemberName(leftmost);
        else
            qualifyUnqualifiedMemberNameIfNecessary(leftmost);
    }

    if (leftmostBinding instanceof ITypeBinding) {
        String addedImport= fNewLocationCuRewrite.getImportRewrite().addImport((ITypeBinding)leftmostBinding, fNewLocationContext);
        fNewLocationCuRewrite.getImportRemover().registerAddedImport(addedImport);
    }

    return false;
}
项目:eclipse.jdt.ls    文件:QuickAssistProcessor.java   
private static SimpleName getMethodInvocationName(MethodReference methodReference) {
    SimpleName name = null;
    if (methodReference instanceof ExpressionMethodReference) {
        name = ((ExpressionMethodReference) methodReference).getName();
    } else if (methodReference instanceof TypeMethodReference) {
        name = ((TypeMethodReference) methodReference).getName();
    } else if (methodReference instanceof SuperMethodReference) {
        name = ((SuperMethodReference) methodReference).getName();
    }
    return name;
}
项目:che    文件:InlineConstantRefactoring.java   
@Override
public boolean visit(Name name) {
  StructuralPropertyDescriptor locationInParent = name.getLocationInParent();
  if (locationInParent == ExpressionMethodReference.NAME_PROPERTY
      || locationInParent == TypeMethodReference.NAME_PROPERTY
      || locationInParent == SuperMethodReference.NAME_PROPERTY) {
    return false;
  }

  SimpleName leftmost = getLeftmost(name);

  IBinding leftmostBinding = leftmost.resolveBinding();
  if (leftmostBinding instanceof IVariableBinding
      || leftmostBinding instanceof IMethodBinding
      || leftmostBinding instanceof ITypeBinding) {
    if (shouldUnqualify(leftmost)) unqualifyMemberName(leftmost);
    else qualifyUnqualifiedMemberNameIfNecessary(leftmost);
  }

  if (leftmostBinding instanceof ITypeBinding) {
    String addedImport =
        fNewLocationCuRewrite
            .getImportRewrite()
            .addImport((ITypeBinding) leftmostBinding, fNewLocationContext);
    fNewLocationCuRewrite.getImportRemover().registerAddedImport(addedImport);
  }

  return false;
}
项目:eclipse.jdt.ls    文件:ImportReferencesCollector.java   
@Override
public boolean visit(SuperMethodReference node) {
    doVisitNode(node.getQualifier());
    doVisitChildren(node.typeArguments());
    return false;
}
项目:eclipse.jdt.ls    文件:ExceptionAnalyzer.java   
@Override
public boolean visit(SuperMethodReference node) {
    return handleMethodReference(node);
}
项目:Migrate-Skeletal-Implementation-to-Interface-Refactoring    文件:SkeletalImplementatonClassRemovalUtils.java   
@Override
public boolean visit(SuperMethodReference node) {
    encounteredSuper = true;
    return false;
}
项目:Migrate-Skeletal-Implementation-to-Interface-Refactoring    文件:SourceMethodBodyAnalysisVisitor.java   
@Override
public boolean visit(SuperMethodReference node) {
    this.methodContainsSuperReference = true;
    return super.visit(node);
}
项目:che    文件:ImportReferencesCollector.java   
@Override
public boolean visit(SuperMethodReference node) {
  doVisitNode(node.getQualifier());
  doVisitChildren(node.typeArguments());
  return false;
}
项目:Beagle    文件:NotRecursingAstVisitor.java   
@Override
public boolean visit(final SuperMethodReference node) {
    return false;
}
项目:Beagle    文件:InstrumentableAstNodeLister.java   
@Override
public boolean visit(final SuperMethodReference node) {
    return this.visitInstrumentable(node);
}
项目:Eclipse-Postfix-Code-Completion    文件:GenericVisitor.java   
@Override
public void endVisit(SuperMethodReference node) {
    endVisitNode(node);
}
项目:Eclipse-Postfix-Code-Completion    文件:GenericVisitor.java   
@Override
public boolean visit(SuperMethodReference node) {
    return visitNode(node);
}
项目:Eclipse-Postfix-Code-Completion    文件:ImportReferencesCollector.java   
@Override
public boolean visit(SuperMethodReference node) {
    doVisitNode(node.getQualifier());
    doVisitChildren(node.typeArguments());
    return false;
}