Tabnine Logo
CompletionProposal.findParameterNames
Code IndexAdd Tabnine to your IDE (free)

How to use
findParameterNames
method
in
org.eclipse.jdt.core.CompletionProposal

Best Java code snippets using org.eclipse.jdt.core.CompletionProposal.findParameterNames (Showing top 20 results out of 315)

origin: org.eclipse/org.eclipse.jdt.ui

  return super.computeReplacementString();
char[][] parameterNames= fProposal.findParameterNames(null);
int count= parameterNames.length;
fArgumentOffsets= new int[count];
origin: org.eclipse.recommenders.completion.rcp/subwords

appendMethodNameReplacement(buffer);
final char[][] parameterNames = fProposal.findParameterNames(null);
final int count = parameterNames.length;
fArgumentOffsets = new int[count];
origin: org.eclipse.recommenders.completion/rcp

appendMethodNameReplacement(buffer);
final char[][] parameterNames = fProposal.findParameterNames(null);
final int count = parameterNames.length;
fArgumentOffsets = new int[count];
origin: org.eclipse.jdt/org.eclipse.jdt.ui

appendMethodNameReplacement(buffer);
char[][] parameterNames= fProposal.findParameterNames(null);
int count= parameterNames.length;
fArgumentOffsets= new int[count];
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

appendMethodNameReplacement(buffer);
char[][] parameterNames= fProposal.findParameterNames(null);
int count= parameterNames.length;
fArgumentOffsets= new int[count];
origin: org.eclipse.recommenders.completion/rcp

final char[][] parameterNames = fProposal.findParameterNames(null);
origin: org.eclipse.jdt/org.eclipse.jdt.ui

  buffer.append(SPACE);
char[][] parameterNames= fProposal.findParameterNames(null);
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

  buffer.append(SPACE);
char[][] parameterNames= fProposal.findParameterNames(null);
origin: org.eclipse.recommenders.completion.rcp/subwords

final char[][] parameterNames = fProposal.findParameterNames(null);
origin: eclipse/eclipse.jdt.ls

private void appendGuessingCompletion(StringBuilder buffer, CompletionProposal proposal) {
  char[][] parameterNames= proposal.findParameterNames(null);
origin: eclipse/eclipse.jdt.ls

public SignatureInformation toSignatureInformation(CompletionProposal methodProposal) {
  SignatureInformation $ = new SignatureInformation();
  StringBuilder desription = descriptionProvider.createMethodProposalDescription(methodProposal);
  $.setLabel(desription.toString());
  $.setDocumentation(this.computeJavaDoc(methodProposal));
  char[] signature = SignatureUtil.fix83600(methodProposal.getSignature());
  char[][] parameterNames = methodProposal.findParameterNames(null);
  char[][] parameterTypes = Signature.getParameterTypes(signature);
  for (int i = 0; i < parameterTypes.length; i++) {
    parameterTypes[i] = Signature.getSimpleName(Signature.toCharArray(SignatureUtil.getLowerBound(parameterTypes[i])));
  }
  if (Flags.isVarargs(methodProposal.getFlags())) {
    int index = parameterTypes.length - 1;
    parameterTypes[index] = convertToVararg(parameterTypes[index]);
  }
  List<ParameterInformation> parameterInfos = new LinkedList<>();
  for (int i = 0; i < parameterTypes.length; i++) {
    StringBuilder builder = new StringBuilder();
    builder.append(parameterTypes[i]);
    builder.append(' ');
    builder.append(parameterNames[i]);
    parameterInfos.add(new ParameterInformation(builder.toString()));
  }
  $.setParameters(parameterInfos);
  return $;
}
origin: org.eclipse/org.eclipse.jdt.ui

char[][] parameterNames= fProposal.findParameterNames(null);
int count= parameterNames.length;
fPositions= new Position[count];
origin: org.eclipse.jdt/org.eclipse.jdt.ui

/**
 * Appends the parameter list to <code>buffer</code>.
 *
 * @param buffer the buffer to append to
 * @param methodProposal the method proposal
 * @return the modified <code>buffer</code>
 */
private StyledString appendUnboundedParameterList(StyledString buffer, CompletionProposal methodProposal) {
  // TODO remove once https://bugs.eclipse.org/bugs/show_bug.cgi?id=85293
  // gets fixed.
  char[] signature= SignatureUtil.fix83600(methodProposal.getSignature());
  char[][] parameterNames= methodProposal.findParameterNames(null);
  char[][] parameterTypes= Signature.getParameterTypes(signature);
  for (int i= 0; i < parameterTypes.length; i++)
    parameterTypes[i]= createTypeDisplayName(SignatureUtil.getLowerBound(parameterTypes[i]));
  if (Flags.isVarargs(methodProposal.getFlags())) {
    int index= parameterTypes.length - 1;
    parameterTypes[index]= convertToVararg(parameterTypes[index]);
  }
  return appendParameterSignature(buffer, parameterTypes, parameterNames);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * Appends the parameter list to <code>buffer</code>.
 *
 * @param buffer the buffer to append to
 * @param methodProposal the method proposal
 * @return the modified <code>buffer</code>
 */
private StyledString appendUnboundedParameterList(StyledString buffer, CompletionProposal methodProposal) {
  // TODO remove once https://bugs.eclipse.org/bugs/show_bug.cgi?id=85293
  // gets fixed.
  char[] signature= SignatureUtil.fix83600(methodProposal.getSignature());
  char[][] parameterNames= methodProposal.findParameterNames(null);
  char[][] parameterTypes= Signature.getParameterTypes(signature);
  for (int i= 0; i < parameterTypes.length; i++)
    parameterTypes[i]= createTypeDisplayName(SignatureUtil.getLowerBound(parameterTypes[i]));
  if (Flags.isVarargs(methodProposal.getFlags())) {
    int index= parameterTypes.length - 1;
    parameterTypes[index]= convertToVararg(parameterTypes[index]);
  }
  return appendParameterSignature(buffer, parameterTypes, parameterNames);
}
origin: eclipse/eclipse.jdt.ls

/**
 * Appends the parameter list to <code>buffer</code>.
 *
 * @param buffer the buffer to append to
 * @param methodProposal the method proposal
 * @return the modified <code>buffer</code>
 */
private StringBuilder appendUnboundedParameterList(StringBuilder buffer, CompletionProposal methodProposal) {
  // TODO remove once https://bugs.eclipse.org/bugs/show_bug.cgi?id=85293
  // gets fixed.
  char[] signature= SignatureUtil.fix83600(methodProposal.getSignature());
  char[][] parameterNames= methodProposal.findParameterNames(null);
  char[][] parameterTypes= Signature.getParameterTypes(signature);
  for (int i= 0; i < parameterTypes.length; i++) {
    parameterTypes[i]= createTypeDisplayName(SignatureUtil.getLowerBound(parameterTypes[i]));
  }
  if (Flags.isVarargs(methodProposal.getFlags())) {
    int index= parameterTypes.length - 1;
    parameterTypes[index]= convertToVararg(parameterTypes[index]);
  }
  return appendParameterSignature(buffer, parameterTypes, parameterNames);
}
origin: org.eclipse/org.eclipse.jdt.ui

/**
 * Appends the parameter list to <code>buffer</code>.
 *
 * @param buffer the buffer to append to
 * @param methodProposal the method proposal
 * @return the modified <code>buffer</code>
 */
private StringBuffer appendUnboundedParameterList(StringBuffer buffer, CompletionProposal methodProposal) {
  // TODO remove once https://bugs.eclipse.org/bugs/show_bug.cgi?id=85293
  // gets fixed.
  char[] signature= SignatureUtil.fix83600(methodProposal.getSignature());
  char[][] parameterNames= methodProposal.findParameterNames(null);
  char[][] parameterTypes= Signature.getParameterTypes(signature);
  for (int i= 0; i < parameterTypes.length; i++)
    parameterTypes[i]= createTypeDisplayName(SignatureUtil.getLowerBound(parameterTypes[i]));
  if (Flags.isVarargs(methodProposal.getFlags())) {
    int index= parameterTypes.length - 1;
    parameterTypes[index]= convertToVararg(parameterTypes[index]);
  }
  return appendParameterSignature(buffer, parameterTypes, parameterNames);
}
origin: org.eclipse.tycho/org.eclipse.jdt.core

parameterPackageNames,
parameterTypeNames,
proposal.findParameterNames(null),
Signature.getSignatureQualifier(returnTypeSignature),
Signature.getSignatureSimpleName(returnTypeSignature),
origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

parameterPackageNames,
parameterTypeNames,
proposal.findParameterNames(null),
Signature.getSignatureQualifier(returnTypeSignature),
Signature.getSignatureSimpleName(returnTypeSignature),
origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

parameterPackageNames,
parameterTypeNames,
proposal.findParameterNames(null),
Signature.getSignatureQualifier(returnTypeSignature),
Signature.getSignatureSimpleName(returnTypeSignature),
origin: trylimits/Eclipse-Postfix-Code-Completion

parameterPackageNames,
parameterTypeNames,
proposal.findParameterNames(null),
Signature.getSignatureQualifier(returnTypeSignature),
Signature.getSignatureSimpleName(returnTypeSignature),
org.eclipse.jdt.coreCompletionProposalfindParameterNames

Javadoc

Finds the method parameter names. This information is relevant to method reference (and method declaration proposals). Returns null if not available or not relevant.

The client must not modify the array returned.

Note that this is an expensive thing to compute, which may require parsing Java source files, etc. Use sparingly.

Popular methods of CompletionProposal

  • getKind
    Returns the kind of completion being proposed. The set of different kinds of completion proposals is
  • getName
    Returns the simple name of the method, field, member, or variable relevant in the context, ornull if
  • getSignature
    Returns the signature of the method or type relevant in the context, or null if none. This field is
  • getCompletion
    Returns the proposed sequence of characters to insert into the source file buffer, replacing the cha
  • getDeclarationSignature
    Returns the type signature or package name of the relevant declaration in the context, or null if no
  • getReplaceStart
    Returns the character index of the start of the subrange in the source file buffer to be replaced by
  • create
    Creates a basic completion proposal. All instance field have plausible default values unless otherwi
  • getDeclarationKey
    Returns the key of the relevant declaration in the context, or null if none. This field is availabl
  • getRelevance
    Returns the relative relevance rating of this proposal.
  • getReplaceEnd
    Returns the character index of the end of the subrange in the source file buffer to be replaced by t
  • getCompletionLocation
    Returns the character index in the source file buffer where source completion was requested (theoffs
  • getFlags
    Returns the modifier flags relevant in the context, orFlags.AccDefault if none. This field is avail
  • getCompletionLocation,
  • getFlags,
  • getRequiredProposals,
  • setCompletion,
  • setDeclarationSignature,
  • setRelevance,
  • setReplaceRange,
  • setSignature,
  • setFlags

Popular in Java

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • getApplicationContext (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now