public final class FixedBitFieldType extends IntegerType implements FixedSizeType
| Constructor and Description |
|---|
FixedBitFieldType(AstLocation location,
java.lang.String name,
boolean isSigned,
java.lang.String bitSizeText)
Constructor from AST node location, the name and the bit size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ZserioAstVisitor visitor)
Accept zserio visitor.
|
int |
getBitSize()
Gets size of the type in bits.
|
java.math.BigInteger |
getLowerBound()
Gets lower bound for this integer type.
|
java.math.BigInteger |
getUpperBound()
Gets upper bound for this integer type.
|
boolean |
isSigned()
Checks if this integer type is signed or not.
|
getLowerBound, getUpperBoundgetName, getPackagegetLocation, visitChildrenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocation, visitChildrenpublic FixedBitFieldType(AstLocation location, java.lang.String name, boolean isSigned, java.lang.String bitSizeText)
location - AST node location.name - Name of the AST node taken from grammar.isSigned - True if the bit field type is signed.bitSizeText - Bit field type size in bits as a string.public void accept(ZserioAstVisitor visitor)
AstNodepublic java.math.BigInteger getUpperBound()
IntegerTypegetUpperBound in class IntegerTypepublic java.math.BigInteger getLowerBound()
IntegerTypegetLowerBound in class IntegerTypepublic boolean isSigned()
IntegerTypeisSigned in class IntegerTypepublic int getBitSize()
FixedSizeTypegetBitSize in interface FixedSizeTypeLast updated 2024-07-18 11:27:53