Package com.tonic.analysis.verifier
Class VerifierConfig
- java.lang.Object
-
- com.tonic.analysis.verifier.VerifierConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVerifierConfig.BuilderBuilder for aVerifierConfig; all passes default to enabled with COLLECT_ALL and 100 errors.static classVerifierConfig.ErrorModeHow the verifier reacts to errors: stop at the first or collect up to the cap.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VerifierConfig.Builderbuilder()Creates a builder for a configuration.static VerifierConfigdefaults()Creates the default configuration: all passes on, COLLECT_ALL, up to 100 errors.VerifierConfig.ErrorModegetErrorMode()intgetMaxErrors()booleanisCollectAll()booleanisFailFast()booleanisStrictTypeChecking()booleanisTreatWarningsAsErrors()booleanisVerifyControlFlow()booleanisVerifyStackMapTable()booleanisVerifyStructure()StringtoString()
-
-
-
Method Detail
-
getErrorMode
public VerifierConfig.ErrorMode getErrorMode()
- Returns:
- the error mode
-
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
-
-