Class CFGTranslationPhaseOne.AssertMethodTuple
java.lang.Object
org.checkerframework.dataflow.cfg.builder.CFGTranslationPhaseOne.AssertMethodTuple
- Enclosing class:
CFGTranslationPhaseOne
Holds the elements of an
AssertMethod
annotation.-
Field Summary
Modifier and TypeFieldDescriptionfinal int
0-based index of the parameter of the expression that is tested by the assert method.final TypeMirror
The type of the exception thrown by the assert method.final boolean
Is this an assert false method?protected static final CFGTranslationPhaseOne.AssertMethodTuple
A tuple representing the lack of anCFGTranslationPhaseOne.AssertMethodTuple
. -
Constructor Summary
ConstructorDescriptionAssertMethodTuple
(int booleanParam, TypeMirror exceptionType, boolean isAssertFalse) Creates an AssertMethodTuple. -
Method Summary
-
Field Details
-
NONE
A tuple representing the lack of anCFGTranslationPhaseOne.AssertMethodTuple
. -
booleanParam
public final int booleanParam0-based index of the parameter of the expression that is tested by the assert method. (Or -1 if this isn't an assert method.) -
exceptionType
The type of the exception thrown by the assert method. -
isAssertFalse
public final boolean isAssertFalseIs this an assert false method?
-
-
Constructor Details
-
AssertMethodTuple
Creates an AssertMethodTuple.- Parameters:
booleanParam
- 0-based index of the parameter of the expression that is tested by the assert methodexceptionType
- the type of the exception thrown by the assert methodisAssertFalse
- is this an assert false method
-