Class JdkFilters.MethodFilter

  • All Implemented Interfaces:
    IItemFilter
    Enclosing class:
    JdkFilters

    private static class JdkFilters.MethodFilter
    extends java.lang.Object
    implements IItemFilter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String methodName  
      private java.lang.String typeName  
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodFilter​(java.lang.String typeName, java.lang.String methodName)
      Constructs a filter that accepts stack trace frames matching the provided type and method name.
    • Field Detail

      • typeName

        private final java.lang.String typeName
      • methodName

        private final java.lang.String methodName
    • Constructor Detail

      • MethodFilter

        public MethodFilter​(java.lang.String typeName,
                            java.lang.String methodName)
        Constructs a filter that accepts stack trace frames matching the provided type and method name.
        Parameters:
        typeName - Type (class) name to match
        methodName - Method name to match
    • Method Detail

      • getPredicate

        public IPredicate<IItem> getPredicate​(IType<IItem> type)
        Specified by:
        getPredicate in interface IItemFilter
        Parameters:
        type - the item type to get a predicate for
        Returns:
        a predicate to use for items of the supplied type