Class UBQualifier.UpperBoundLiteralQualifier
java.lang.Object
org.checkerframework.checker.index.upperbound.UBQualifier
org.checkerframework.checker.index.upperbound.UBQualifier.UpperBoundLiteralQualifier
- Enclosing class:
UBQualifier
Represents an integer value that is known at compile time.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.checkerframework.checker.index.upperbound.UBQualifier
UBQualifier.LessThanLengthOf, UBQualifier.UpperBoundLiteralQualifier, UBQualifier.UpperBoundUnknownQualifier
-
Field Summary
Modifier and TypeFieldDescriptionstatic final UBQualifier.UpperBoundLiteralQualifier
Represents the value -1.static final UBQualifier.UpperBoundLiteralQualifier
Represents the value 1.static final UBQualifier.UpperBoundLiteralQualifier
Represents the value 0. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(int value) Creates an UpperBoundLiteralQualifier.int
getValue()
Returns the integer value.glb
(UBQualifier other) boolean
Returns true if this UBQualifier represents a literal integer.boolean
isSubtype
(UBQualifier superType) lub
(UBQualifier other) toString()
Methods inherited from class org.checkerframework.checker.index.upperbound.UBQualifier
createUBQualifier, createUBQualifier, createUBQualifier, createUBQualifier, createUBQualifier, createUBQualifier, hasSequenceWithOffset, hasSequenceWithOffset, isBottom, isLessThanLengthOf, isLessThanLengthOfAny, isLessThanLengthQualifier, isLessThanOrEqualTo, isPoly, isUnknown, minusOffset, minusOffset, plusOffset, plusOffset, widenUpperBound
-
Field Details
-
NEGATIVEONE
Represents the value -1. -
ZERO
Represents the value 0. -
ONE
Represents the value 1.
-
-
Method Details
-
create
Creates an UpperBoundLiteralQualifier.- Parameters:
value
- the integer value- Returns:
- an UpperBoundLiteralQualifier
-
getValue
public int getValue()Returns the integer value.- Returns:
- the integer value
-
isLiteral
public boolean isLiteral()Description copied from class:UBQualifier
Returns true if this UBQualifier represents a literal integer.- Overrides:
isLiteral
in classUBQualifier
- Returns:
- true if this UBQualifier represents a literal integer
-
isSubtype
- Specified by:
isSubtype
in classUBQualifier
-
lub
- Specified by:
lub
in classUBQualifier
-
glb
- Specified by:
glb
in classUBQualifier
-
toString
-