congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MethodInfo.matchMethodName
Code IndexAdd Tabnine to your IDE (free)

How to use
matchMethodName
method
in
jodd.proxetta.MethodInfo

Best Java code snippets using jodd.proxetta.MethodInfo.matchMethodName (Showing top 6 results out of 315)

origin: oblac/jodd

  @Override
  public boolean apply(final MethodInfo methodInfo) {
    return
        methodInfo.isPublicMethod()
        && methodInfo.hasReturnValue()
        && (methodInfo.matchMethodName("get*") || (methodInfo.matchMethodName("is*")))
        && methodInfo.hasNoArguments()
        ;
  }
}
origin: oblac/jodd

  @Override
  public boolean apply(final MethodInfo methodInfo) {

    if (methodInfo.hasReturnValue()
        && (methodInfo.matchMethodName("get*") || (methodInfo.matchMethodName("is*")))
        && methodInfo.hasNoArguments()) {
      // getter
      return false;
    }

    if (methodInfo.matchMethodName("set*")
        && methodInfo.hasOneArgument()) {
      // setter
      return false;
    }

    return methodInfo.isPublicMethod();
  }
}
origin: oblac/jodd

  @Override
  public boolean apply(final MethodInfo methodInfo) {
    return
        methodInfo.isPublicMethod()
        && methodInfo.matchMethodName("set*")
        && methodInfo.hasOneArgument()
        ;
  }
}
origin: org.jodd/jodd-proxetta

  @Override
  public boolean apply(final MethodInfo methodInfo) {
    return
        methodInfo.isPublicMethod()
        && methodInfo.hasReturnValue()
        && (methodInfo.matchMethodName("get*") || (methodInfo.matchMethodName("is*")))
        && methodInfo.hasNoArguments()
        ;
  }
}
origin: org.jodd/jodd-proxetta

  @Override
  public boolean apply(final MethodInfo methodInfo) {

    if (methodInfo.hasReturnValue()
        && (methodInfo.matchMethodName("get*") || (methodInfo.matchMethodName("is*")))
        && methodInfo.hasNoArguments()) {
      // getter
      return false;
    }

    if (methodInfo.matchMethodName("set*")
        && methodInfo.hasOneArgument()) {
      // setter
      return false;
    }

    return methodInfo.isPublicMethod();
  }
}
origin: org.jodd/jodd-proxetta

  @Override
  public boolean apply(final MethodInfo methodInfo) {
    return
        methodInfo.isPublicMethod()
        && methodInfo.matchMethodName("set*")
        && methodInfo.hasOneArgument()
        ;
  }
}
jodd.proxettaMethodInfomatchMethodName

Javadoc

Match method name to provided jodd.util.Wildcard pattern.

Popular methods of MethodInfo

  • getArgumentsCount
    Returns number of method arguments.
  • getMethodName
    Returns method name.
  • getReturnType
    Returns return TypeInfo.
  • getArgument
    Returns methods argument (1-indexed).
  • isPublicMethod
    Returns true if method is public.
  • getAnnotations
    Returns annotation infos, if there is any.
  • getClassname
    Returns bytecode-like class name.
  • getDeclaredClassName
    Returns declared class name for inner methods or #getClassname() for top-level methods.
  • getSignature
    Returns java-like method signature.
  • isTopLevelMethod
    Returns true if method is declared in top-level class.
  • getAccessFlags
    Returns methods access flags.
  • getClassInfo
    Returns target jodd.proxetta.ClassInfo.
  • getAccessFlags,
  • getClassInfo,
  • getDescription,
  • getExceptions,
  • getAllArgumentsSize,
  • getArgumentOffset,
  • hasAnnotation,
  • hasNoArguments,
  • hasOneArgument,
  • hasReturnValue

Popular in Java

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Permission (java.security)
    Legacy security code; do not use.
  • JLabel (javax.swing)
  • JList (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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