Interface FieldsThat<CONJUNCTION extends GivenFieldsConjunction>

    • Method Detail

      • haveRawType

        @PublicAPI(usage=ACCESS)
        CONJUNCTION haveRawType​(java.lang.Class<?> type)
        Matches fields by their raw type. Take for example
        
         class Example {
             String someField;
         }
         
        Then someField would be matched by
        fields().that().haveRawType(String.class)
        Parameters:
        type - Type matching fields must have
        Returns:
        A syntax conjunction element, which can be completed to form a full rule
      • doNotHaveRawType

        @PublicAPI(usage=ACCESS)
        CONJUNCTION doNotHaveRawType​(java.lang.Class<?> type)
        Matches fields that do not have the given raw type. Take for example
        
         class Example {
             String someField;
         }
         
        Then someField would be matched by
        fields().that().doNotHaveRawType(Object.class)
        Parameters:
        type - Type matching fields must not have
        Returns:
        A syntax conjunction element, which can be completed to form a full rule
      • haveRawType

        @PublicAPI(usage=ACCESS)
        CONJUNCTION haveRawType​(java.lang.String typeName)
        Matches fields by the fully qualified name of their raw type. Take for example
        
         class Example {
             String someField;
         }
         
        Then someField would be matched by
        fields().that().haveRawType(String.class.getName())
        Parameters:
        typeName - Name of type matching fields must have
        Returns:
        A syntax conjunction element, which can be completed to form a full rule
      • doNotHaveRawType

        @PublicAPI(usage=ACCESS)
        CONJUNCTION doNotHaveRawType​(java.lang.String typeName)
        Matches fields that do not have the given fully qualified name of their raw type. Take for example
        
         class Example {
             String someField;
         }
         
        Then someField would be matched by
        fields().that().doNotHaveRawType(Object.class.getName())
        Parameters:
        typeName - Name of type matching fields must not have
        Returns:
        A syntax conjunction element, which can be completed to form a full rule
      • areStatic

        @PublicAPI(usage=ACCESS)
        CONJUNCTION areStatic()
        Matches static fields.
        Returns:
        A syntax conjunction element, which can be completed to form a full rule
      • areNotStatic

        @PublicAPI(usage=ACCESS)
        CONJUNCTION areNotStatic()
        Matches non-static fields.
        Returns:
        A syntax conjunction element, which can be completed to form a full rule
      • areFinal

        @PublicAPI(usage=ACCESS)
        CONJUNCTION areFinal()
        Matches final fields.
        Returns:
        A syntax conjunction element, which can be completed to form a full rule
      • areNotFinal

        @PublicAPI(usage=ACCESS)
        CONJUNCTION areNotFinal()
        Matches non-final fields.
        Returns:
        A syntax conjunction element, which can be completed to form a full rule