Enum IdentityStatementsValidator

    • Method Detail

      • values

        public static IdentityStatementsValidator[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (IdentityStatementsValidator c : IdentityStatementsValidator.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static IdentityStatementsValidator valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • validate

        public void validate​(Body body,
                             List<ValidationException> exceptions)
        Checks the following invariants on this Jimple body:
        1. this-references may only occur in instance methods
        2. this-references may only occur as the first statement in a method, if they occur at all
        3. param-references must precede all statements that are not themselves param-references or this-references, if they occur at all
        Specified by:
        validate in interface BodyValidator
        Specified by:
        validate in interface Validator<Body>
        Parameters:
        body - the body to check
        exceptions - the list of exceptions
      • isBasicValidator

        public boolean isBasicValidator()
        Description copied from interface: BodyValidator
        Basic validators run essential checks and are run always if validate is called.
        If this method returns false and the caller of the validator respects this property,
        the checks will only be run if the debug or validation option is activated.
        Specified by:
        isBasicValidator in interface BodyValidator
        Specified by:
        isBasicValidator in interface Validator<Body>
        Returns:
        whether this validator is a basic validator