public final class StdIntegerType extends IntegerType implements FixedSizeType
| Constructor and Description |
|---|
StdIntegerType(AstLocation location,
java.lang.String name,
int tokenType)
Constructor from AST node location, the name and the token type.
|
| 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 StdIntegerType(AstLocation location, java.lang.String name, int tokenType)
location - AST node location.name - Name of the AST node taken from grammar.tokenType - Grammar token type.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-10-29 12:52:38