Class CodingConventions


  • public final class CodingConventions
    extends java.lang.Object
    Helper classes for dealing with coding conventions.
    • Method Detail

      • getDefault

        public static CodingConvention getDefault()
        Gets the default coding convention.
      • defaultIsFunctionCallThatAlwaysThrows

        public static boolean defaultIsFunctionCallThatAlwaysThrows​(Node n,
                                                                    java.lang.String alwaysThrowsFunctionName)
        Parameters:
        n - The last statement of a block to check for an always throws function call. Used by CheckMissingReturn.
        alwaysThrowsFunctionName - The name of a function that always throws.
        Returns:
        true if n is call to alwaysThrowsFunctionName, otherwise false.