Class VerifierConfig


  • public final class VerifierConfig
    extends Object
    Immutable settings for the Verifier: which passes run, the error mode, and the error cap.
    • Method Detail

      • isVerifyStackMapTable

        public boolean isVerifyStackMapTable()
        Returns:
        whether verify stack map table
      • isStrictTypeChecking

        public boolean isStrictTypeChecking()
        Returns:
        whether strict type checking
      • isVerifyControlFlow

        public boolean isVerifyControlFlow()
        Returns:
        whether verify control flow
      • isVerifyStructure

        public boolean isVerifyStructure()
        Returns:
        whether verify structure
      • getMaxErrors

        public int getMaxErrors()
        Returns:
        the max errors
      • isTreatWarningsAsErrors

        public boolean isTreatWarningsAsErrors()
        Returns:
        whether treat warnings as errors
      • defaults

        public static VerifierConfig defaults()
        Creates the default configuration: all passes on, COLLECT_ALL, up to 100 errors.
        Returns:
        the default configuration
      • builder

        public static VerifierConfig.Builder builder()
        Creates a builder for a configuration.
        Returns:
        a new builder
      • isFailFast

        public boolean isFailFast()
        Returns:
        true if the error mode is FAIL_FAST
      • isCollectAll

        public boolean isCollectAll()
        Returns:
        true if the error mode is COLLECT_ALL