Interface Signature


  • public interface Signature
    The so called construct signature is a representation of the body of a construct that allows comparing different releases. Possible implementations can be, for instance, abstract syntax trees (AST).
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean equals​(Object _o)
      Returns true if the signatures are equal, false otherwise.
      String toJson()
      Returns a short (perhaps compressed) JSON representation of the signature, to be uploaded to the central Vulas engine.
      String toString()
      toString.
    • Method Detail

      • equals

        boolean equals​(Object _o)
        Returns true if the signatures are equal, false otherwise.
        Overrides:
        equals in class Object
        Parameters:
        _o - the signature to compare with
        Returns:
        a boolean.
      • toJson

        String toJson()
        Returns a short (perhaps compressed) JSON representation of the signature, to be uploaded to the central Vulas engine. The reason to have a short representation is that we need to upload and store signatures for all applications and dependencies analyzed. Moreover, it would be very good to create a representation that can be compared also on server-side, e.g., by means of SQL statements or stored procedures.
        Returns:
        a String object.
      • toString

        String toString()

        toString.

        Overrides:
        toString in class Object
        Returns:
        String representation of signature