congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JavaParser$ResolvedMethod.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
com.android.tools.lint.client.api.JavaParser$ResolvedMethod

Best Java code snippets using com.android.tools.lint.client.api.JavaParser$ResolvedMethod.getName (Showing top 6 results out of 315)

origin: com.android.tools.lint/lint

  return null;
Collection<MethodInfo> methods = c.methods.get(method.getName());
if (methods == null) {
  return null;
origin: com.amazon.device.tools.lint/lint-checks

  @NonNull ResolvedMethod method) {
String name = method.getName();
if (ON_DETACHED_FROM_WINDOW.equals(name)) {
origin: com.amazon.device.tools.lint/lint-checks

private static void checkThreading(
    @NonNull JavaContext context,
    @NonNull MethodInvocation node,
    @NonNull ResolvedMethod method,
    @NonNull String annotation) {
  String threadContext = getThreadContext(context, node);
  if (threadContext != null && !isCompatibleThread(threadContext, annotation)) {
    String message = String.format("Method %1$s must be called from the `%2$s` thread, currently inferred thread is `%3$s` thread",
        method.getName(), describeThread(annotation), describeThread(threadContext));
    context.report(THREAD, node, context.getLocation(node), message);
  }
}
origin: com.amazon.device.tools.lint/lint-checks

String name = method.getContainingClass().getSimpleName() + "." + method.getName();
String message = getMissingPermissionMessage(requirement, name, permissions);
context.report(MISSING_PERMISSION, node, context.getLocation(node), message);
origin: com.android.tools.lint/lint-api

String methodName = getName();
int argCount = getArgumentCount();
for (ResolvedMethod method : cls.getMethods(methodName, true)) {
origin: com.amazon.device.tools.lint/lint-checks

private static void checkCallSuper(@NonNull JavaContext context,
    @NonNull MethodDeclaration declaration,
    @NonNull ResolvedMethod method) {
  ResolvedMethod superMethod = getRequiredSuperMethod(method);
  if (superMethod != null) {
    if (!SuperCallVisitor.callsSuper(context, declaration, superMethod)) {
      String methodName = method.getName();
      String message = "Overriding method should call `super."
          + methodName + "`";
      Location location = context.getLocation(declaration.astMethodName());
      context.report(ISSUE, declaration, location, message);
    }
  }
}
com.android.tools.lint.client.apiJavaParser$ResolvedMethodgetName

Popular methods of JavaParser$ResolvedMethod

  • getContainingClass
  • getArgumentCount
  • getArgumentType
  • isConstructor
  • getModifiers
  • getParameterAnnotations
    Returns any annotations defined on the given parameter of this method
  • getReturnType
  • getAnnotation
  • getAnnotations
  • getSuperMethod
    Returns the super implementation of the given method, if any

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • BoxLayout (javax.swing)
  • JLabel (javax.swing)
  • JPanel (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Github Copilot alternatives
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